【发布时间】:2020-05-01 21:48:46
【问题描述】:
我正在迈出 C++ 学习的第一步 我正在使用带有“MinGW”的“codelite”IDE,当我清理项目时,我发现出现错误,尽管我可以构建项目并成功运行 这里是构建日志文件:
C:\Windows\system32\cmd.exe /C C:/MinGW/bin/mingw32-make.exe -j2 SHELL=cmd.exe -e -f Makefile clean
"----------Cleaning project:[ project1 - Debug ]----------"
process_begin: CreateProcess(NULL, rm -f -r Debug/, ...) failed.
make (e=2): The system cannot find the file specified.
mingw32-make.exe[1]: *** [clean] Error 2
mingw32-make.exe[1]: Entering directory 'C:/Users/UNI/Documents/section4/project1'
rm -f -r Debug/
project1.mk:108: recipe for target 'clean' failed
mingw32-make.exe[1]: Leaving directory 'C:/Users/UNI/Documents/section4/project1'
mingw32-make.exe: *** [clean] Error 2
Makefile:7: recipe for target 'clean' failed
====2 errors, 0 warnings====
【问题讨论】:
-
rm -f -r Debug/你是否为此安装了某种类型的 linux 工具?rm不是 windows 默认拥有的。也许codelite允许你更改命令 -
rd /q /s Debug/将是等效的 windows 命令。 -
我没有安装任何 linux 软件,我不知道如何编辑或更改此命令