Hi Mike,
> Hi all,
>
> I'm trying to static link a .LIB file (the ZLib zlibstat.lib file to be
> exact) to a VC++ app. I have the correct LIB file and I've added the
> header file and #pragma comment(lib, "zlibstat.lib") line to my code. But
> I keep getting errors like this:
Is the path of zlibstat.lib in your LIB path? Maybe it is not found by the
linker
Bye,
SvenC
> imp_title error LNK2019: unresolved external symbol _inflateEnd referenced
> in function "private: int __thiscall CZipFile::inf(struct _iobuf *,struct
[quoted text clipped - 7 lines]
>
> Anyone have any ideas what could be causing this? Thanks!
Mike C# - 17 Aug 2006 21:30 GMT
Hi SvenC,
Yes I moved it to the same directory with the project source files. I also
tried moving it to a sub-directory under the project and using #pragma
comment(lib, "subdirectory\\zlibstat.lib"). There's something funky going
on here, but I can't put my finger on it. I'm thinking it might have
something to do with the fact that the zlibstat.lib source is C and maybe
the wrong calling conventions (__stdcall, __cdecl, etc.) are being used...
I've tried different calling conventions, but no luck so far...
It's a little aggravating and I might just keep searching for a different
zip library. Know of any good, free, zip file extraction libraries
(unmanaged)?
Thanks
> Hi Mike,
>
[quoted text clipped - 22 lines]
>>
>> Anyone have any ideas what could be causing this? Thanks!