Eclipse CDT:没有规则使目标全部 [英] Eclipse CDT: no rule to make target all
本文介绍了Eclipse CDT:没有规则使目标全部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
#include< iostream>
使用命名空间std;
int main(){
cout<<< 你好,世界!!! << ENDL; //打印Hello World!
return 0;
}
任何人都知道如何解决这个问题?
我已经阅读了类似标题的帖子:
make:***没有规则使目标'全部'。停止。 Eclipse错误
但是这些答案都没有帮助...
非常感谢!
解决方案
您需要更改项目设置,以便Eclipse-CDT为您管理您的Makefile。
- 从菜单栏中选择Project-> Properties。
- 点击出现对话框左侧的C / C ++ Build。
- 在右侧的Builder设置选项卡下,在Makefile生成部分下选择自动生成Makefile。
- 点击OK并重新生成
My Eclipse CDT keeps complaining "make: *** no rule to make target all" when I am trying to compile the piece of code below:
#include <iostream>
using namespace std;
int main() {
cout << "Hello World!!!" << endl; // prints Hello World!!!
return 0;
}
Anyone knows how to solve this? I have read the post with the similar title: make: *** No rule to make target `all'. Stop. Eclipse error But none of those answers help...
Thanks a lot!
解决方案
You need to change your project settings so that Eclipse-CDT manages your Makefiles for you.
- Select Project->Properties from the menu bar.
- Click C/C++ Build on the left in the dialog that comes up.
- Under the Builder Settings tab on the right, select "Generate Makefiles automatically" under the Makefile generation section.
- Hit OK and build again.
这篇关于Eclipse CDT:没有规则使目标全部的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文