[Gdal-dev] RE: MapServer WCS

Martin Daly Martin.Daly at cadcorp.com
Tue Oct 19 11:33:31 EDT 2004


Frank,

> > Does this give you what you need?
> 
> It does indeed.

I spoke too soon.  Just this week I changed from linking with gdal.lib
(i.e. statically), to linking with gdal_i.lib (i.e. dynamically).  In
the dynamic link there is no DLL entry point for the libtiff function
that I want to use: TIFFGetField.

In the short term I have worked around it by adding the following to
frmts\gtiff\geotiff.cpp:

int CPL_DLL GDAL_TIFFGetField(TIFF* tif, ttag_t tag, ...)
{
	int status;
	va_list ap;

	va_start(ap, tag);
	status = TIFFVGetField(tif, tag, ap);
	va_end(ap);
	return (status);
}

That is copied TIFFGetField (inside CPL_C_START/CPL_C_END), prefixed it
with GDAL_, and added CPL_DLL.  Not nice.

Regards,
Martin



More information about the Gdal-dev mailing list