编译wxwidgets程序出错
http://topic.csdn.net/u/20100105/09/c854cc79-c8b0-4c1a-a8cf-9ab001ab13a5.html
用了老邓这个,编译时还是出错
||=== a, Debug ===|
E:\LoveDEV\sdk\wx\include\wx\platform.h|196|error: wx/setup.h: No such file or directory|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|103|error: #error "wxUSE_DYNLIB_CLASS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|111|error: #error "wxUSE_EXCEPTIONS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|119|error: #error "wxUSE_FILESYSTEM must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|127|error: #error "wxUSE_FS_ARCHIVE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|140|error: #error "wxUSE_DYNAMIC_LOADER must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|148|error: #error "wxUSE_LOG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|156|error: #error "wxUSE_LONGLONG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|164|error: #error "wxUSE_MIMETYPE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|180|error: #error "wxUSE_PRINTF_POS_PARAMS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|188|error: #error "wxUSE_PROTOCOL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|230|error: #error "wxUSE_REGEX must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|238|error: #error "wxUSE_STDPATHS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|246|error: #error "wxUSE_XML must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|254|error: #error "wxUSE_SOCKETS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|262|error: #error "wxUSE_STREAMS must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|270|error: #error "wxUSE_STOPWATCH must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|278|error: #error "wxUSE_TEXTBUFFER must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|286|error: #error "wxUSE_TEXTFILE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|302|error: #error "wxUSE_URL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|310|error: #error "wxUSE_VARIANT must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|330|error: #error "wxUSE_ABOUTDLG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|338|error: #error "wxUSE_ACCEL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|346|error: #error "wxUSE_ANIMATIONCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|354|error: #error "wxUSE_BITMAPCOMBOBOX must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|362|error: #error "wxUSE_BMPBUTTON must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|370|error: #error "wxUSE_BUTTON must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|378|error: #error "wxUSE_CALENDARCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|386|error: #error "wxUSE_CARET must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|394|error: #error "wxUSE_CHECKBOX must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|410|error: #error "wxUSE_CHOICE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|418|error: #error "wxUSE_CHOICEBOOK must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|426|error: #error "wxUSE_CHOICEDLG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|434|error: #error "wxUSE_CLIPBOARD must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|442|error: #error "wxUSE_COLLPANE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|450|error: #error "wxUSE_COLOURDLG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|458|error: #error "wxUSE_COLOURPICKERCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|466|error: #error "wxUSE_COMBOBOX must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|474|error: #error "wxUSE_COMBOCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|482|error: #error "wxUSE_DATAOBJ must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|490|error: #error "wxUSE_DATAVIEWCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|498|error: #error "wxUSE_DATEPICKCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|506|error: #error "wxUSE_DIRPICKERCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|514|error: #error "wxUSE_DISPLAY must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|522|error: #error "wxUSE_DOC_VIEW_ARCHITECTURE must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|530|error: #error "wxUSE_FILEDLG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|538|error: #error "wxUSE_FILEPICKERCTRL must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|546|error: #error "wxUSE_FONTDLG must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|554|error: #error "wxUSE_FONTMAP must be defined."|
E:\LoveDEV\sdk\wx\include\wx\chkconf.h|562|error: #error "wxUSE_FONTPICKERCTRL must be defined."|
||More errors follow but not being shown.|
||Edit the max errors limit in compiler options...|
||=== Build finished: 50 errors, 0 warnings ===|
一大堆错误,怎么解决%>_<%
[解决办法]
你把E:\LoveDEV\sdk\wx\include\wx\platform.h中的第196行的#include "wx/setup.h"
改成#include "wx/setup_inc.h"试试
或者吧E:\LoveDEV\sdk\wx\include\wx\setup_inc.h文件复制一份重命名为setup.h