程序G ++没有找到路径 [英] program g++ not found in path

查看:229
本文介绍了程序G ++没有找到路径的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用Eclipse一个C项目。我通过转到新建 - >ç项目 - > Executable->空项目,Linux的gcc工具。

I am using Eclipse for a C project. I created a new Project by going to New->C project->Executable->Empty Project, Linux gcc toolchain.

当我添加一个新的.c文件,我得到程序G ++不在路径中找到。
我该如何摆脱这件事?我还没有使用C ++。

When I add a new .c file, I get "program 'g++' not found in path". How do I get rid of this? I'm not even using C++.

推荐答案

我有类似的问题,这是由

I had similar problem and it is solved by


  1. 安装G ++的GNU C ++使用Ubuntu软件中心编译以及

  1. Installing g++ The GNU C++ complier using ubuntu software centre and

在改变 -

窗口 - > preferences - > C / C ++ - >构建 - >设置 - >搜索 - > CDT GCC在编者设置构建[共享]

Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build in Complier Settings [Shared]

From: ${COMMAND} -E -P -v -dD "${INPUTS}"
To  : /usr/bin/${COMMAND} -E -P -v -dD "${INPUTS}"

我希望它能帮助。

I hope it helps.

这篇关于程序G ++没有找到路径的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆