gpt4 book ai didi

c++ - eclipse for c++编译错误

转载 作者:搜寻专家 更新时间:2023-10-31 00:00:30 24 4
gpt4 key购买 nike

首先,我是 Linux 操作系统的新手。

我安装了 ubuntueclipse 以及 c/c++ 包。

我启动了一个新项目,即默认项目“Hello World c++ project”,当我运行它时,它给了我错误:

Description     Resource    Path    Location    Type
Program "g++" not found in PATH Preferences, C++/Build/Settings/Discovery, [CDT GCC Builtin Compiler Settings] options C/C++ Scanner Discovery Problem

我该怎么办?

最佳答案

尝试安装所有开发者工具,在控制台输入:sudo aptitude install build-essential。它将安装 g++、gcc 和所有库。

关于c++ - eclipse for c++编译错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13048491/

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