gpt4 book ai didi

c++ - Eclipse CDT : no rule to make target all

转载 作者:IT老高 更新时间:2023-10-28 12:31:46 26 4
gpt4 key购买 nike

当我尝试编译以下代码时,我的 Eclipse CDT 一直在提示“make: *** no rule to make target all”:

#include <iostream>
using namespace std;

int main() {
cout << "Hello World!!!" << endl; // prints Hello World!!!
return 0;
}

有人知道如何解决这个问题吗?我已经阅读了类似标题的帖子: make: *** No rule to make target `all'. Stop. Eclipse error但是这些答案都没有帮助......

非常感谢!

最佳答案

您需要更改项目设置,以便 Eclipse-CDT 为您管理 Makefile。

  1. 从菜单栏中选择项目->属性。
  2. 在弹出的对话框中点击左侧的 C/C++ Build。
  3. 在右侧的 Builder Settings 选项卡下,选择 Makefile generation 部分下的“Generate Makefiles automatically”。
  4. 点击 OK 并重新构建。

关于c++ - Eclipse CDT : no rule to make target all,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12574187/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com