gpt4 book ai didi

c++ - Codelite 构建错误 'No such file or directory'

转载 作者:行者123 更新时间:2023-11-30 05:24:59 25 4
gpt4 key购买 nike

我是使用 Codelite 编程的新手,我使用 wxCrafter 创建了一些简单的框架,但是 Codelight 不会安装(是的,我已经安装了 mingw,在控制台程序上工作)。我想,我在我的框架上犯了一个错误,我决定在不改变任何东西的情况下创建一个新项目,然后只构建项目。我得到相同的错误代码:

C:\Windows\system32\cmd.exe /C C:/TDM-GCC-64/bin/mingw32-make.exe -j4 SHELL=cmd.exe -e -f  Makefile
"----------Building project:[ Test - Debug ]----------"

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.

Please use the --prefix flag (as in wx-config --prefix=C:/wxWidgets)
or set the environment variable WXWIN (as in WXWIN=C:/wxWidgets)
to specify where is your installation of wxWidgets.
mingw32-make.exe[1]: Entering directory 'C:/Users/user/Documents/CodeLite/Gravitation_Simulator/Test'
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [Debug/main.cpp.o.d] Error 1
mingw32-make.exe[1]: *** Waiting for unfinished jobs....
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
Test.mk:99: recipe for target 'Debug/main.cpp.o.d' failed
mingw32-make.exe[1]: *** [Debug/MainFrame.cpp.o.d] Error 1
g++.exe: error: wx-config: No such file or directory
g++.exe: error: Error:: Invalid argument
g++.exe: error: wxWidgets: No such file or directory
g++.exe: error: hasn't: No such file or directory
g++.exe: error: been: No such file or directory
g++.exe: error: found: No such file or directory
g++.exe: error: installed: No such file or directory
g++.exe: error: at: No such file or directory
g++.exe: error: 'C:\Program: Invalid argument
g++.exe: error: Files'.: No such file or directory
mingw32-make.exe[1]: *** [Debug/wxcrafter.cpp.o.d] Error 1
mingw32-make.exe: *** [All] Error 2
Test.mk:107: recipe for target 'Debug/MainFrame.cpp.o.d' failed
Test.mk:115: recipe for target 'Debug/wxcrafter.cpp.o.d' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/user/Documents/CodeLite/Gravitation_Simulator/Test'
Makefile:4: recipe for target 'All' failed
====1 errors, 0 warnings====`

最佳答案

问题不在于 MinGW。您需要设置环境变量 WXCFGWXWIN您可以在 CodeLite 中执行此操作:Settings->Environment variales

比如你在C:\src\wxWidgets下安装了wxWidgets开发包

您应该像这样在 CodeLite 的环境变量部分添加 2 个条目:

WXCFG=gcc_dll\mswu
WXWIN=C:\src\wxWidgets

这应该会为您修复这些警告。

艾兰

关于c++ - Codelite 构建错误 'No such file or directory',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38510648/

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