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.
When I launch my program I get The program can't start because zlib1.dll is missing.....
The same program built using Visual Studio 2013 does not exhibit the same behaviour. It runs without asking for zlib1.dll because I assume the library is statically linked.
doublemax wrote:Do you see the same when trying one of the wxWidgets samples? (Try the "image" sample, as it can load PNGs, it must use the zlib library)
The sample "image" does not exhibit the same behaviour. Now I am not sure where else to look. I am using the exact same compile link command
Adding wxzlibd.lib to the Linker / input property solved my problem.
No other wx libraries is explicitly added so I am nit sure why zlib has to be treated differently.
Also this was never an issue with Visual Studio 2013.
Conclusion: my problem is solved but I still don't have a good explanation.
katuday wrote:Adding wxzlibd.lib to the Linker / input property solved my problem.
No other wx libraries is explicitly added so I am nit sure why zlib has to be treated differently.
Also this was never an issue with Visual Studio 2013.
Conclusion: my problem is solved but I still don't have a good explanation.
Found the real reason.
I had installed vcpkg ( https://github.com/Microsoft/vcpkg ) for zlib and enabled user-wide integration.
It is the zlib version that was being used.
vcpkg onlly support VS 2015 and 2017 that's why I never had issues with VS 2013.
Hi,
Keep in mind that you might have a different set of issues due to incompatibility - you compiled wxWidgets in release mode but using zlibd library, which is compiled in debug mode.
You need to either recompile wxWidgets or find a release version of zlib library.
ONEEYEMAN wrote:Hi,
Keep in mind that you might have a different set of issues due to incompatibility - you compiled wxWidgets in release mode but using zlibd library, which is compiled in debug mode.
You need to either recompile wxWidgets or find a release version of zlib library.
Thank you.
Thanks for the remainder.
In the end I un-installed the vcpkg version of zlib and don't need to add the library name explicitly; now all is good now.