g ++无法与wx-config配合使用 [英] g++ won't play nice with wx-config
本文介绍了g ++无法与wx-config配合使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我在使用mingw的Windows上,并且当我使用以下内容尝试编译我的wxWidgets代码
I'm on windows using mingw and when i use the following to try and compile my wxWidgets code
g++ main.cpp `wx-config --libs` `wx-config --cxxflags`
我收到以下错误
g++: `wx-config: No such file or directory
g++: `wx-config: No such file or directory
cc1plus.exe: error: unrecognized command line option "-flibs`"
cc1plus.exe: error: unrecognized command line option "-fcxxflags`"
而且我不知道该怎么做才能使g ++与wx-config完美配合
And I cannot figure out what to do to make g++ play nice with wx-config
请帮助,谢谢.
推荐答案
您使用的是什么shell?反引号在Windows命令提示符下不起作用.您可能需要使用msys和bash.
What shell are you using? Back quotes don't work on the Windows command prompt. You may need to use msys and bash.
这篇关于g ++无法与wx-config配合使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文