簡體   English   中英

帶代碼塊設置的wxWidgets

[英]wxWidgets with Codeblocks setup

所以,我試圖用代碼塊啟動和運行wxwidgets。 我已經安裝了mingw我也編譯了小部件我的環境PATH變量也已經正確設置

但是每當我嘗試從代碼塊構建wxWidgets項目時,都會收到錯誤消息

||=== Build: Release in test (compiler: GNU GCC Compiler) ===|
ld.exe||cannot find -lwxmsw_core|
ld.exe||cannot find -lwxbase|
ld.exe||cannot find -lwxpng|
ld.exe||cannot find -lwxzlib|
||error: ld returned 1 exit status|
||=== Build failed: 5 error(s), 0 warning(s) (0 minute(s), 9 second(s)) ===|

您似乎沒有正確配置鏈接器。

您可以使用MSYS獲得鏈接器設置。 轉到wxwidgets文件夾,然后在MSYS中鍵入以下內容: wx-config --libs > /c/settings.txt 這將在C:驅動器中生成帶有鏈接器設置的文本文件。 您也可以使用--cxxflags獲取編譯器設置。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM