Eclipse c++构建错误:没有这样的文件或目录
Eclipse c++ build error: no such file or directory
我按照一些教程安装了MinGW和CDT。我试图编译和运行"你好世界"代码。在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 << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
可能是一个愚蠢的问题,但是在构建它之前您是否将文件保存在某个地方?我遇到过这样的错误,通过将其保存在我的桌面或其他地方来解决。
编辑:似乎有几个人使用MinGW有问题。你提到你看过之前的stackoverflow问题,它们包括这些吗?Eclipse CDT错误:无法编译错误:没有这样的文件或目录存在
其他解决方案建议您应该尝试通过命令行编译程序,这…应该没有问题,因为它只是"Hello, World"。
相关文章:
- 如何从构建 libgpio.so 的生成文件构建libgpio.a
- 为多个测试文件构建可执行文件
- 在QMAKE中编译之前,如何使用可执行文件构建多个标头文件
- 从同一文件构建基类和继承类
- cmake:如何迭代目录中的所有源文件并将每个文件构建到可执行文件中
- MEX文件构建具有八度的构建(包装纸问题)
- 通过解析文件构建逻辑语句
- C++ 如何从.dat文件构建字符串的 2D 矩阵?5 列 x 行
- 使用其他文件构建 gcc 插件
- 从文件构建有向图
- 仅使用 DLL *.h 头文件构建(compile.link)应用程序代码,并在运行时加载 DLL 实现(显式链接)
- 使用两个文本文件构建链表
- 从PSD文件构建层comps
- 如何从多个c++文件构建二进制文件
- Eclipse:没有什么要为文件构建的
- MATLAB mex文件构建成功,但没有显示任何内容
- Android OS框架-将单个可执行文件构建为共享对象
- 当尝试从使用makefile生成的目标文件构建时,c++链接器错误.在我刚建立的时候不会发生
- 为什么Xcode 4.2为.cpp文件应用C文件构建规则脚本?
- Matlab Mex文件构建:代码更改不再影响mex文件