Page 2 of 2

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Posted: Fri Dec 16, 2016 9:38 am
by PB
Is there a valid "setup.h" file in your "C:\Cpp\wxWidgets\lib\vc_dll\mswu\wx" (DLL debug build) and in "C:\Cpp\wxWidgets\lib\vc_dll\msw\wx" (release build) folders, generated by building wxWidgets with MSVC using "nmake -f makefile.vc BUILD=debug SHARED=1" and "nmake -f makefile.vc BUILD=release SHARED=1" or their IDE equivalents?

I assume you do have setup.h in n your "C:\Cpp\wxWidgets\include\wx\msw" as well as in "C:\Cpp\wxWidgets\include\msvc\wx".

But I still find odd that MSVC IDE complains about missing header files when opening the project, these errors should appear only when building it (and the files cannot be found)...

I assume you can still build and run the minimal sample in DLL debug configuration.

Re: Identifier "wxZipStreamLink" is undefined + unresolved externals

Posted: Fri Dec 16, 2016 10:23 am
by Tapsa
There are "setup.h" file in both mswu and mswud folders as you asked.
I don't have nmake on my PC.

Yes I can still build and run the minimal sample using DLL Debug configuration.
MSVC is so intelligent that it looks for you already beforehand some stuff up.

I have managed to get the errors in my own project down to 2 only.
Error LNK1104 cannot open file 'wxbase31ud_net.lib' Kuvastin C:\Users\Tapsa\Documents\GitHub\Kuvastin\LINK 1
Error (active) identifier "wxZipStreamLink" is undefined Kuvastin c:\Cpp\wxWidgets\include\wx\zipstrm.h 407
I fixed those by building the remaining libs (dunno why they are needed, they should not be).
My project compiles now :)
Just need to fix some unhandled exceptions.

What fixed it?
1. Using exactly the same configuration options (DLL Debug/Release).
2. Some magical edits in vcxproj file copied from minimal.
3. Build everything, even seemingly unrelated and unnecessary libs.