Re: How to solve the lnk2019 error

Tech Tip: Click here to run a free scan for Windows Errors and optimize PC performance



How did you add the lib file to the project? Normally, I just configure the "Additional Library Directories" linker option.

Bryan Phillips
MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com




"zouhy" <zouhy@xxxxxxx> wrote in message news:#sjH5wM#GHA.1220@xxxxxxxxxxxxxxxxxxxx:

when i use vs.net 2005 to debug my program, there are some errors occur,
here is the description:

Error 1 error LNK2019: unresolved external symbol __imp__inflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::OpenFile(unsigned short)" (?OpenFile@CZipArchive@@QAE_NG@Z)
d:\work\ZipExample\Zipd.lib 1

but i have add the lib "Zipd.lib" to the project, and this program can be
debug well in vc6.0, help me!

.