C++ g++;韩元';不能很好地使用wx配置

C++ g++;韩元';不能很好地使用wx配置,c++,mingw,wxwidgets,C++,Mingw,Wxwidgets,我在windows上使用mingw,当我使用以下工具尝试编译我的wxWidgets代码时 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 "-

我在windows上使用mingw,当我使用以下工具尝试编译我的wxWidgets代码时

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中运行良好


请帮忙,谢谢。

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

在命令行上键入
wx config
会发生什么?啊哈,我假设它们在命令提示符下工作,谢谢您的澄清