gpt4 book ai didi

c++ - g++ 不能很好地与 wx-config 一起使用

转载 作者:太空狗 更新时间:2023-10-29 21:06:53 26 4
gpt4 key购买 nike

我在 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。

关于c++ - g++ 不能很好地与 wx-config 一起使用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6432004/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com