On Wed, Dec 10, 2025 at 12:55 PM Kai Pastor, DG0YT via gdal-dev <
[email protected]> wrote:

> Am 10.12.25 um 17:09 schrieb Andrew Bell via gdal-dev:
>
> Hi,
>
> All symbols that aren't specifically exported should be hidden if when you
> build the flag "-fvisibility=hidden" is set. See
> cmake/helpers/configure.cmake.
>
> I don't think this will help with MSVC and its dllexport declarations.
>

I don't know that this is MSVC. I thought it was a GCC build on Windows,
but regardless, things are essentially the same (on Windows you *must*
export all the symbols you want visible). I don't know spatialite, but
there should be some sort of DLL marker (like CPL_DLL in GDAL) that can be
turned off when building a static library that you then link into GDAL.

This may be helpful:

https://gcc.gnu.org/wiki/Visibility

-- 
Andrew Bell
[email protected]
_______________________________________________
gdal-dev mailing list
[email protected]
https://lists.osgeo.org/mailman/listinfo/gdal-dev

Reply via email to