[gdal-dev] inflateCopy required?

Brent Fraser bfraser at geoanalytic.com
Fri Sep 5 17:51:25 EDT 2008



Frank Warmerdam wrote:
> Brent Fraser wrote:
>>
>> I just did a checkout and build of GDAL, and got the following:
>>
>>   Creating library gdal_i.lib and object gdal_i.exp
>> cpl_vsil_gzip.obj : error LNK2019: unresolved external symbol 
>> _inflateCopy referenced in function "public: class VSIGZipHandle * 
>> __thiscall VSIGZipHandle::Duplicate(void)" 
>> (?Duplicate at VSIGZipHandle@@QAEPAV1 at XZ)
>> gdal16dev.dll : fatal error LNK1120: 1 unresolved externals
>>
>> Where can I find the "inflateCopy " function? Zlib?  Should nmake.opt 
>> be updated to include a definition to Zlib?
> 
> Brent,
> 
> Normally I think the internal copy of zlib (gdal/frmts/zlib) should
> provide that function.  Is it possible you are building in an 
> unconventional
> fashion or are using an external zlib of a different version?
> 
> Best regards,

All I did was edit nmake.opt for locations of ECW, OGDI, MrSID, HDF4, and PG libs.  Hmm, there are no .obj files in the frmts\zlib dir...  

And the frmts\makefile.vc has:

!IFDEF OGDIDIR
EXTRAFLAGS	=	$(EXTRAFLAGS) -DFRMT_ogdi
!ELSE
EXTRAFLAGS	=	$(EXTRAFLAGS) -DFRMT_zlib
!ENDIF

I guess the zlib functions in my ogdi build are too old.  I'll look into that...

Thanks!
Brent


More information about the gdal-dev mailing list