eclipse c++没有构建错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5504446/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
eclipse c++ nothing to build error
提问by kamikaze_pilot
so I was trying to build a C++ project, but then I get this error
所以我试图构建一个 C++ 项目,但后来我收到了这个错误
**** Build of configuration Release for project p ****
**** Internal Builder is used for build ****
Nothing to build for p
and I search online for solutions but they're not solving the problem
我在网上搜索解决方案,但他们没有解决问题
- my files are all in lower case
- my files are properly included in the project, in fact the files were generated from File -> new -> c++ project -> hello world project so they're created by eclipse...
- 我的文件都是小写的
- 我的文件正确地包含在项目中,实际上这些文件是从 File -> new -> c++ project -> hello world project 生成的,所以它们是由 eclipse 创建的...
and the code is just the eclipse hello world code...
并且代码只是eclipse hello world代码......
#include <iostream>
using namespace std;
int main() {
cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
return 0;
}
- The compiler is installed properly...I got mingw on C:\mingw and the project's includes folder contain all these files properly...
- 编译器安装正确......我在 C:\mingw 上得到了 mingw 并且项目的包含文件夹正确地包含所有这些文件......
does anyone know what might be wrong?
有谁知道可能有什么问题?
回答by Joseph Little
Had this exact same problem today, but luckily I found a video which sorted it out for me. Seems we weren't properly installing MinGW.
今天遇到了完全相同的问题,但幸运的是我找到了一个视频,为我解决了这个问题。似乎我们没有正确安装 MinGW。
Check this out: http://www.youtube.com/watch?v=b2cfc9ERkpk
回答by venu palla
You should add "msys" path (C:\MinGW\msys\1.0) to tour project along with MinGW path (C:\MinGW\bin). Then build goes fine.
您应该将 "msys" 路径 (C:\MinGW\msys\1.0) 与 MinGW 路径 (C:\MinGW\bin) 一起添加到游览项目中。然后构建正常。