简体   繁体   English

带代码块设置的wxWidgets

[英]wxWidgets with Codeblocks setup

So im trying to get wxwidgets up and running with codeblocks. 所以,我试图用代码块启动和运行wxwidgets。 I have installed mingw I also compiled widgets My environment PATH variables have also been set up correctly 我已经安装了mingw我也编译了小部件我的环境PATH变量也已经正确设置

but whenever I try to build a wxWidgets project from code blocks i get the error 但是每当我尝试从代码块构建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)) ===|

You seem to have improperly configured the Linker. 您似乎没有正确配置链接器。

You can get the linker settings using MSYS. 您可以使用MSYS获得链接器设置。 Go to your wxwidgets folder and type this in MSYS: wx-config --libs > /c/settings.txt . 转到wxwidgets文件夹,然后在MSYS中键入以下内容: wx-config --libs > /c/settings.txt This will generate a text file in the C: drive with the linker settings. 这将在C:驱动器中生成带有链接器设置的文本文件。 You can also use --cxxflags to get the compiler settings. 您也可以使用--cxxflags获取编译器设置。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM