g++ won't play nice with wx-config

泪湿孤枕 提交于 2020-01-13 13:49:10

问题


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`

I get the following error

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`"

And I cannot figure out what to do to make g++ play nice with wx-config

Please help, thanks.


回答1:


What shell are you using? Back quotes don't work on the Windows command prompt. You may need to use msys and bash.



来源:https://stackoverflow.com/questions/6432004/g-wont-play-nice-with-wx-config

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!