wxWidgets因为unicode编译出错

来源:互联网 发布:linux线程优先级设置 编辑:程序博客网 时间:2024/05/29 19:12

错误提示如下

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即可


0 0