wxZlibInputStream Errors with wxwidget3.1.1

Do you have a question about makefiles, a compiler or IDE you are using and need to know how to set it up for wxWidgets or why it doesn't compile but other IDE's do ? Post your questions here.
Post Reply
kyadav78
Knows some wx things
Knows some wx things
Posts: 29
Joined: Thu Feb 22, 2018 10:37 am

wxZlibInputStream Errors with wxwidget3.1.1

Post by kyadav78 »

HI,
I have built wxWidget3.1.1 static lib in visual studio 2015 for both DEBUG and RELEASE mode. Build was Successful.
Next while building an application which uses static wxWidget libraries in Debug mode, I am getting below WxWidget:1wxZlibInputStream errors

"Error LNK2019 unresolved external symbol wx_zlib_inflateEnd referenced in function "public: virtual __cdecl wxZlibInputStream::~wxZlibInputStream(void)" (??1wxZlibInputStream@@UEAA@XZ) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zstream.obj) 1 "
Error LNK2019 unresolved external symbol wx_zlib_zlibVersion referenced in function "public: static bool __cdecl wxZlibInputStream::CanHandleGZip(void)" (?CanHandleGZip@wxZlibInputStream@@SA_NXZ) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zstream.obj)
Error LNK2019 unresolved external symbol wx_zlib_inflateSetDictionary referenced in function "public: bool __cdecl wxZlibInputStream::SetDictionary(char const *,unsigned __int64)" (?SetDictionary@wxZlibInputStream@@QEAA_NPEBD_K@Z) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zstream.obj)
Error LNK2019 unresolved external symbol wx_zlib_inflateReset referenced in function "public: bool __cdecl wxZlibInputStream2::Open(class wxInputStream &)" (?Open@wxZlibInputStream2@@QEAA_NAEAVwxInputStream@@@Z) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zipstrm.obj)
Error LNK2019 unresolved external symbol wx_zlib_inflateInit2_ referenced in function "private: void __cdecl wxZlibInputStream::Init(int)" (?Init@wxZlibInputStream@@AEAAXH@Z) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zstream.obj) 1
Error LNK2019 unresolved external symbol wx_zlib_inflate referenced in function "protected: virtual unsigned __int64 __cdecl wxZlibInputStream::OnSysRead(void *,unsigned __int64)" (?OnSysRead@wxZlibInputStream@@MEAA_KPEAX_K@Z) fierycsiatom L:\JDF\CSIAtom\source\AtomMain\project\VC14\wxbase311ud.lib(zstream.obj) 1

can anyone help in that?
Regards
Kunal
ONEEYEMAN
Part Of The Furniture
Part Of The Furniture
Posts: 7449
Joined: Sat Apr 16, 2005 7:22 am
Location: USA, Ukraine

Re: wxZlibInputStream Errors with wxwidget3.1.1

Post by ONEEYEMAN »

Hi,
Are you using the same compiler for the build?
Are you building from the IDE or command prompt?

Thank you.
User avatar
doublemax
Moderator
Moderator
Posts: 19103
Joined: Fri Apr 21, 2006 8:03 pm
Location: $FCE2

Re: wxZlibInputStream Errors with wxwidget3.1.1

Post by doublemax »

Maybe you just forgot to add wxzlibd.lib to the Debug configuration?
Use the source, Luke!
Post Reply