eclipse c++没有什么可构建错误

发布于 2024-10-28 22:25:02 字数 681 浏览 2 评论 0原文

所以我试图构建一个 C++ 项目,但后来我收到此错误

**** Build of configuration Release for project p ****

**** Internal Builder is used for build               ****
Nothing to build for p

,我在线搜索解决方案,但他们没有解决问题

  1. 我的文件都是小写的
  2. 我的文件已正确包含在项目中,事实上文件是从 File -> 生成的新-> C++ 项目 -> hello world 项目,所以它们是由 eclipse 创建的...

代码只是 eclipse hello world 代码...

#include <iostream>
using namespace std;

int main() {
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;
}
  1. 编译器安装正确...我在 C:\mingw 上找到了 mingw,项目的包含文件夹包含所有这些文件正确...

有人知道可能出了什么问题吗?

so I was trying to build a C++ project, but then I get this error

**** 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

  1. my files are all in lower case
  2. 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...

and the code is just the eclipse hello world code...

#include <iostream>
using namespace std;

int main() {
    cout << "!!!Hello World!!!" << endl; // prints !!!Hello World!!!
    return 0;
}
  1. The compiler is installed properly...I got mingw on C:\mingw and the project's includes folder contain all these files properly...

does anyone know what might be wrong?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

冰魂雪魄 2024-11-04 22:25:02

今天也遇到了同样的问题,但幸运的是我找到了一个视频为我解决了这个问题。看来我们没有正确安装 MinGW。

看看这个:
http://www.youtube.com/watch?v=b2cfc9ERkpk

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.

Check this out:
http://www.youtube.com/watch?v=b2cfc9ERkpk

凉世弥音 2024-11-04 22:25:02

您应该将“msys”路径(C:\ MinGW \ msys \ 1.0)与MinGW路径(C:\ MinGW \ bin)一起添加到游览项目中。然后构建就顺利了。

You should add "msys" path (C:\MinGW\msys\1.0) to tour project along with MinGW path (C:\MinGW\bin). Then build goes fine.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文