zlib linking error with 3.2 (not with 3.0)
Fulvio Senore <[email protected]>
| Newsgroups | gmane.comp.lib.wxwindows.general |
|---|---|
| Message-ID | <[email protected]> |
I am trying to port an old project from wxWidgets 3.0 to 3.2. I had the usual amount of small problems but it was easy to fix them, then I was able to compile under Windows. Now I am getting linker errors and I need some help to fix them. Here are the errors: 5>exiv2sd.lib(pngchunk.obj) : error LNK2019: unresolved external symbol _uncompress referenced in function "private: static void __cdecl Exiv2::Internal::PngChunk::zlibUncompress(unsigned char const *,unsigned int,class Exiv2::DataBuf &)" (?zlibUncompress@PngChunk@Internal@Exiv2@@CAXPBEIAAVDataBuf@3@@Z) 5>exiv2sd.lib(pngchunk.obj) : error LNK2019: unresolved external symbol _compress2 referenced in function "private: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Exiv2::Internal::PngChunk::zlibCompress(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &)" (?zlibCompress@PngChunk@Internal@Exiv2@@CA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV45@@Z) 5>exiv2sd.lib(pngchunk.obj) : error LNK2019: unresolved external symbol _crc32 referenced in function "private: static class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > __cdecl Exiv2::Internal::PngChunk::makeAsciiTxtChunk(class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,class std::basic_string<char,struct std::char_traits<char>,class std::allocator<char> > const &,bool)" (?makeAsciiTxtChunk@PngChunk@Internal@Exiv2@@CA?AV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@ABV45@0_N@Z) The errors come from a statically linked Exiv2 library. It looks like the linker cannot find some symbols that come from zlib. I made some tests and if I build the program against wxWidgets 3.0.2 everything works and the program links correctly. If I build against wxWidgets version 3.1.1 o later I get those linker errors. It looks like from 3.1 something has changed and the zlib copy included in wxWidgets is no more accessible. Does anybody know how to fix this problem? Thanks in advance. Fulvio Senore -- Please read https://www.wxwidgets.org/support/mlhowto.htm before posting. --- You received this message because you are subscribed to the Google Groups "wx-users" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/wx-users/794cffb4-7a25-f316-09c0-5c4e388670a8%40fsoft.it.