Eclipse CDT:没有规则使目标全部 [英] Eclipse CDT: no rule to make target all
本文介绍了Eclipse CDT:没有规则使目标全部的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我的Eclipse CDT持续抱怨make: * 没有规则使目标全部当我试图编译下面这段代码:
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;
}
任何人都知道如何解决这个问题?
我读过类似标题的帖子:
make:***没有规则使目标`all'。停止。 Eclipse错误
但是这些答案没有帮助...
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...
非常感谢。
推荐答案
您需要更改您的项目设置,以便Eclipse-CDT为您管理您的Makefile。
You need to change your project settings so that Eclipse-CDT manages your Makefiles for you.
- 从菜单栏中选择项目 - >属性。
- 单击对话框左侧的C / C ++ Build。
- 在右侧的Builder设置标签下,选择Makefile生成部分下的自动生成Makefiles。
- 点击确定并重新生成。
- 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屋!
查看全文