错误提示如下
undefined reference to `wxApp::Initialize(int&, char**)'
obj\Release\testMain.o:testMain.cpp:(.text+0xb0): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
obj\Release\testMain.o:testMain.cpp:(.text+0xf0): undefined reference to `_imp___ZN12wxStringBase10ConcatSelfEjPKcj'
obj\Release\testMain.o:testMain.cpp:(.text+0x1fc): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
obj\Release\testMain.o:testMain.cpp:(.text+0x426): undefined reference to `_imp___ZN12wxStringBase8InitWithEPKcjj'
collect2.exe: error: ld returned 1 exit status
解决办法:
如果出现如上错误的话,是因为unicode错误,只要在build设置里面的#define加上_UNICOD即可