Project的Properties:

1、修改Tool Chain Editor中的Current toolchain为:MinGW GCC

Current builder为: Gnu Make Builder

 

2、GCC C++ Compiler中设置wxwidgets中的include目录

Preprocessor中设置:__WXMSW__ ,__WXDEBUG__,_UNICODE

Miscellaneous中的Other flags设置为:-c -Wundef -Wno-ctor-dtor-privacy -fno-strict-aliasing

 

3、MinGW C++ Linker中设置wxwidgets中的lib目录

链接库:wxmsw28ud(注意:不是libwxmsw28ud, 更不是libwxmsw28ud.a,为此折腾了一晚上……),kernel32,user32,gdi32,comdlg32,winspool,winmm,shell32,comctl32,ole32,oleaut32,uuid,rpcrt4,advapi32,wsock32,odbc32

Miscellaneous中的Linker Flags设置为:-Wl,--subsystem,windows -mwindows

 

4、最后,在Builder Setting中Builder Type为External Builder, 去掉Use default build command

填写Build command 为:mingw32-make –fmakefile

 

参考:http://seawavecau.javaeye.com/blog/234577

posted on 2010-03-05 23:41  saising  阅读(644)  评论(0)    收藏  举报