Hi
I've a COM compiled in visual studio 6 that is internally using zlib library
(an opensource library for compression). I've no problem compiling that
code. But when I moved to visual studio.Net it started giving me linker
errors. The errors are given below. Is there any compiler option in the .Net
studio that I'm missing because if there were a problem with the zlib
library that I'm using, it must have given errors in VS 6 too. If someone
has had any simmilar problems, please guide.
The linking errors are
HCDirectory error LNK2019: unresolved external symbol _crc32 referenced in
function "public: unsigned long __thiscall CZipArchive::ReadFile(void
*,unsigned long)" (?ReadFile@CZipArchive@@QAEKPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflate referenced in
function "public: bool __thiscall CZipArchive::WriteNewFile(void *,unsigned
long)" (?WriteNewFile@CZipArchive@@QAE_NPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _deflateEnd referenced
in function "public: bool __thiscall CZipArchive::CloseNewFile(void)"
(?CloseNewFile@CZipArchive@@QAE_NXZ)
HCDirectory error LNK2019: unresolved external symbol _deflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::OpenNewFile(class CZipFileHeader &,int,char const *)"
(?OpenNewFile@CZipArchive@@QAE_NAAVCZipFileHeader@ @HPBD@Z)
HCDirectory error LNK2019: unresolved external symbol _get_crc_table
referenced in function "protected: unsigned long __thiscall
CZipArchive::CryptCRC32(unsigned long,char)"
(?CryptCRC32@CZipArchive@@IAEKKD@Z)
HCDirectory error LNK2019: unresolved external symbol _inflate referenced in
function "public: unsigned long __thiscall CZipArchive::ReadFile(void
*,unsigned long)" (?ReadFile@CZipArchive@@QAEKPAXK@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateEnd referenced
in function "public: int __thiscall CZipArchive::CloseFile(char const
*,bool)" (?CloseFile@CZipArchive@@QAEHPBD_N@Z)
HCDirectory error LNK2019: unresolved external symbol _inflateInit2_
referenced in function "public: bool __thiscall
CZipArchive::OpenFile(unsigned short)" (?OpenFile@CZipArchive@@QAE_NG@Z)
HCDirectory fatal error LNK1120: 8 unresolved externals
Regards
Usman