我按照一些教程安装了MinGW和CDT。我正在尝试编译和运行"hello world“代码。eclipse中没有错误,但是当我编译代码时,我得到了这个错误:
22:48:32 **** Incremental Build of configuration Debug for project test3 ****
Info: Internal Builder is used for build
g++ "-IC:\\MinGW\\lib\\gcc\\mingw32\\4.8.1\\include\\c++" "-IC:\\MinGW\\lib\\gcc\\mingw32\\4.8.1\\include\\c++\\mingw32" -O0 -g3 -Wall -c -fmessage-length=0 -o "src\\test3.o" "..\\src\\test3.cpp"
g++: error: CreateProcess: No such file or directory
22:48:32 Build Finished (took 135ms)代码:
#include <iostream>
using namespace std;
int main() {
cout << "!World!" << endl; // prints !World!
return 0;
}发布于 2014-05-06 04:16:06
问这个问题可能有点傻,但在构建文件之前,您是否将其保存在某个位置?我曾经遇到过这样的错误,可以通过将其保存在桌面或其他任何位置来解决。
编辑:似乎有几个人在使用MinGW时遇到了问题。您提到您查看了之前的堆栈溢出问题,它们是否包括以下内容:
Eclipse CDT error: Unable to compile MinGW error: No such file or directory exists
其他解决方案建议您尝试通过命令行编译程序,这应该不是问题,因为它只是"Hello,World“。
https://stackoverflow.com/questions/23480669
复制相似问题