g++ 不能很好地与 wx-config 配合使用

cst*_*fel 3 c++ wxwidgets mingw

我在使用 mingw 的 Windows 上,当我使用以下内容尝试编译我的 wxWidgets 代码时

g++ main.cpp `wx-config --libs` `wx-config --cxxflags`
Run Code Online (Sandbox Code Playgroud)

我收到以下错误

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`"
Run Code Online (Sandbox Code Playgroud)

而且我不知道该怎么做才能使 g++ 与 wx-config 一起玩得很好

请帮忙,谢谢。

Ric*_*ton 5

你用的是什么壳?反引号在 Windows 命令提示符下不起作用。您可能需要使用 msys 和 bash。