【问题标题】:g++ won't play nice with wx-configg++ 不能与 wx-config 配合使用
【发布时间】:2011-09-19 21:27:08
【问题描述】:

我在使用 mingw 的 Windows 上,当我使用以下内容尝试编译我的 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 配合得很好

请帮忙,谢谢。

【问题讨论】:

  • 在命令行输入wx-config会发生什么?

标签: c++ mingw wxwidgets


【解决方案1】:

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

【讨论】:

  • 啊哈,我假设他们确实在命令提示符下工作,感谢您的澄清
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2013-04-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多