[Gdal-dev] GeoTiff: Exporting libtiff symbols

Todd Jellett todd.jellett at caris.com
Fri Nov 26 08:59:01 EST 2004


Hi all,

I'm setting up a build (.NET 2003) of gdal-1.2.5 with all libraries
external to gdal (including geotiff and libtiff).

I want to be able to produce both static and DLL versions of
the geotiff and libtiff libraries.

In the geotiff (1.2.2) makefile.vc there is the following note:

#
#       Note: Building a DLL is OK as far as libgeotiff is concerned,
#       but tiff.lib will get linked into $(GEOTIFF_DLL) without actually
#       exporting it's interface.  This means another copy will get
#       pulled into the application and this could lead to much confusion.
#       Only build $(GEOTIFF_DLL) if you are also ensuring that TIFF symbols
#       get exported.
#

In the geotiff (1.2.2) makefile.vc there is the following note:

Can someone explain this further. If both the geotiff library and
the tiff library are produced as DLLs, why wouldn't the symbols
for the tiff library be exported. This seems to totally defeat the
main premise for using "shared" libraries.

How would one ensure that the tiff symbols get exported?

Todd






More information about the Gdal-dev mailing list