Hi there
I'm having problem compiling my code. I have a library along with its header
file that I've used in my Com project. On compilation I get this linking
error. Does anyone have any idea how to remove these linker errors. The
problem comes only when I use a class (exists in library) variable in my Com
code.
TestAPP error LNK2019: unresolved external symbol _crc32 referenced in
function "public: unsigned long __thiscall CMyArchive::ReadFile(void
*,unsigned long)" (?ReadFile@CMyArchive@@QAEKPAXK@Z)
TestAPP error LNK2019: unresolved external symbol _deflate referenced in
function "public: bool __thiscall CMyArchive::WriteNewFile(void *,unsigned
long)" (?WriteNewFile@CMyArchive@@QAE_NPAXK@Z)
TestAPP error LNK2019: unresolved external symbol _deflateEnd referenced in
function "public: bool __thiscall CMyArchive::CloseNewFile(void)"
(?CloseNewFile@CMyArchive@@QAE_NXZ)
TestAPP error LNK2019: unresolved external symbol _deflateInit2_ referenced
in function "public: bool __thiscall CMyArchive::OpenNewFile(class
CHCZipFileHeader &,int,char const *)"
(?OpenNewFile@CMyArchive@@QAE_NAAVCHCZipFileHeader @@HPBD@Z)
TestAPP error LNK2019: unresolved external symbol _get_crc_table referenced
in function "protected: unsigned long __thiscall
CMyArchive::CryptCRC32(unsigned long,char)"
(?CryptCRC32@CMyArchive@@IAEKKD@Z)
TestAPP error LNK2019: unresolved external symbol _inflate referenced in
function "public: unsigned long __thiscall CMyArchive::ReadFile(void
*,unsigned long)" (?ReadFile@CMyArchive@@QAEKPAXK@Z)
TestAPP error LNK2019: unresolved external symbol _inflateEnd referenced in
function "public: int __thiscall CMyArchive::CloseFile(char const *,bool)"
(?CloseFile@CMyArchive@@QAEHPBD_N@Z)
TestAPP error LNK2019: unresolved external symbol _inflateInit2_ referenced
in function "public: bool __thiscall CMyArchive::OpenFile(unsigned short)"
(?OpenFile@CMyArchive@@QAE_NG@Z)
TestAPP fatal error LNK1120: 8 unresolved externals
Regards
Usman