[英]failed to build codeblocks smith wxWidget project
我正在嘗試設置代碼:: blocks smith以進行wxWidgets GUI編程。 最近,我在PC上安裝了代碼::: blocks和wxWidget庫。
code::blocks IDE version: 13.12
wxWidget version: 2.8.12
Operating System: Windows 7
以下是wxWidget項目的構建日志。 我按照wxWidget網站上列出的說明進行操作,但是沒有用。
-------------- Build: Debug in CsBarcodeScanner (compiler: GNU GCC Compiler)---------------
mingw32-g++.exe -pipe -mthreads -D__GNUWIN32__ -D__WXMSW__ -DwxUSE_UNICODE -Winvalid-pch -include wx_pch.h -DWX_PRECOMP -Wall -g -D__WXDEBUG__ -IC:\wxWidgets-2.8.12\include -IC:\wxWidgets-2.8.12\lib\gcc_lib\mswud -c C:\Data\CsBarcodeScanner\wx_pch.h -o wx_pch.h.gch\Debug_wx_pch_h_gch
In file included from C:\wxWidgets-2.8.12\include/wx/platform.h:293:0,
from C:\wxWidgets-2.8.12\include/wx/defs.h:21,
from C:\wxWidgets-2.8.12\include/wx/wxprec.h:13,
from ./wx_pch.h:14,
from <command-line>:0:
C:\wxWidgets-2.8.12\include/wx/chkconf.h:1817:9: error: #error "wxClipboard requires wxDataObject"
Process terminated with status 1 (0 minute(s), 2 second(s))
1 error(s), 0 warning(s) (0 minute(s), 2 second(s))
您是否編輯過wx/setup.h
文件? 默認情況下,應在其中將wxUSE_DATAOBJECT
設置為1,這樣我就看不到未經修改的源如何發生此錯誤。
另外,我強烈建議使用wxWidgets 3.0,絕對沒有理由為新項目使用2.8。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.