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

2019-05-11 20:21发布

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条回答
爱情/是我丢掉的垃圾
2楼-- · 2019-05-11 21:13

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

查看更多
登录 后发表回答