Well, I define the following macros
1 2 3 4
|
__GNUWIN32__
__WXMSW__
WXUSINGDLL
wxUSE_UNICODE
|
Did you make sure that you've listed all needed libs in your environment? |
Frankly, I have no idea. As I said, I am new to wxWidgets - though I would have thought that libwxmsw28u.a (I think the MSVC equivalent would be wxmsw28u.lib) is enough. As I said, I looked into the build options of a template wxWidgets project which actually does get compiled and linked just fine (which is also the reason why I am fairly certain that my wxWidgets build is fine).
And again: This is just a basic wxWidgets hello_world program - I really don't do anything else than creating a new frame with the caption "Hello World" and a small menu bar, I don't use any headers other than
#include <wx/wx.h>
...
EDIT: Forget it. I have absolutely no idea what I am doing differently, but for some reason it seems to work now.
EDIT2: Now it doesn't work again. Removed the macros and it didn't work anymore, inserted the macros again and it doesn't work. Huh, I have no idea what's going on.
EDIT3: Apparently, it actually has something to do with winundef.h, so thanks for that. But I still have troubles figuring out how exactly it works, cause if I compile it once with winundef.h and then again without it still works... I am a bit confused (epic understatement).