program g++ not found in path(在路径中找不到程序 g++)
问题描述
我将 Eclipse 用于 C 项目.我通过转到 New->C project->Executable->Empty Project, Linux gcc toolchain 创建了一个新项目.
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
使用 ubuntu 软件中心安装 g++ GNU C++ 编译器和
Installing g++ The GNU C++ complier using ubuntu software centre and
换衣服-
Window -> Preferences -> C/C++ -> Build -> Settings -> Discovery -> CDT GCC Build in Complier Settings [Shared]
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}"
希望对你有帮助.
这篇关于在路径中找不到程序 g++的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:在路径中找不到程序 g++
基础教程推荐
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- Struts2 URL 无法访问 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
