2004.01.05 09:37 "[Tiff] building experience with VC6", by Gerben Koopmans
I experienced minor building inconveniences using makefile.vc in tiff-3.6.1 in combination with the MS Visual Studio version 6 C compiler.
- libtiff linking with jpeg support requires that the jpeg library is added, i.e.,
LIBS = $(JPEGDIR)/libjpeg.lib
must be specified in makefile.vc
- fax2ps.c doesnot compile, fax2ps.c.orig is fine in this respect.
- _TIFFFieldWithTag is used in tif_pdsdirread.c, but is neither defined in this file or exported by libtiff.
- The same applies to TIFFSetTagExtender, which is used in libgeotiff-1.2.1\libxtiff\xtiff.c
Exports are defined in the .def file. Preferable seems to be to use __declspec(dllexport) in the source, as is done in geotiff. According to the manual, declaring functions as dllexport eliminates the need for a module-definition (.DEF) file, at least with respect to the specification of exported functions.
KEMA Power Generation & Sustainables
KEMA Nederland B.V.
P. O. Box 9035
6800 ET Arnhem
Registered Arnhem 09080262
Telephone +31 26 3 56 32 93
Telefax +31 26 3 56 20 12