[Zlib-devel] Fwd: zlib 1.2.4 linker with gz functions
Mark Adler
madler at alumni.caltech.edu
Mon Apr 19 13:10:38 EDT 2010
Some more data on zlib Windows linking issues.
Mark
Begin forwarded message:
> From: "Devadatta, Shubha" <Shubha.Devadatta at wardrop.com>
> Date: April 19, 2010 9:34:29 AM PDT
> To: Mark Adler <madler at alumni.caltech.edu>
> Cc: "jloup at gzip.org" <jloup at gzip.org>
> Subject: RE: zlib 1.2.4 linker with gz functions
>
> Hi Mark, appreciate your response..
> I use windows XP, running Visual studio 6 compiler.
>
> Previous version used was 1.2.1..
> - removed previous zlib directory to which the paths for include/linking etc were set.
> - brought in new zlib124, set path to zlib124 in the vc++ project options.
>
> - copied the zlib1.dll renamed to zlib.dll in the linker path. Made the ZLIB_DLL macro setting in the options
>
> - Build..
>
> Gives the following errors.
>
> error LNK2001: unresolved external symbol __imp__gzclose at 4
> CDRFileCracker.obj : error LNK2001: unresolved external symbol __imp__gzread at 12
> CDRFileCracker.obj : error LNK2001: unresolved external symbol __imp__gzopen at 8
>
> Thanks very much for your help,
>
> Shubha
>
>
>
>
> -----Original Message-----
> From: Mark Adler [mailto:madler at alumni.caltech.edu]
> Sent: Sunday, April 18, 2010 1:10 PM
> To: Devadatta, Shubha
> Cc: jloup at gzip.org
> Subject: Re: zlib 1.2.4 linker with gz functions
>
> On Apr 7, 2010, at 1:41 PM, Devadatta, Shubha wrote:
>> I just downloaded the zlib version 1.2.4. I use the " gz" functions to avoid allocating RAM. However I am not able to link with the new zlib.lib.. I have linker errors for unresolved symbols for "gzopen" gzread and gzclose.. gzwrite seems to be resolving w/o any problem..
>
> Shubha,
>
> We just checked again, and those functions are all accessible. What is your platform, OS, compiler, linker, steps taken to link?
>
> Mark
>
>
>
More information about the Zlib-devel
mailing list