Eclipse C++ : quot;Program quot;g++quot; not found in PATHquot;(Eclipse C++:“程序g++“在 PATH 中找不到)
问题描述
我在我的 Windows 7(32 位)中安装了 gpp,如图所示.
I have gpp installed in my Windows 7 (32 bit) as shown in the picture.
PATH 变量气体 g++
PATH variable gas g++
"%SystemRoot%system32;%SystemRoot%;%SystemRoot%System32Wbem;%SYSTEMROOT%System32WindowsPowerShellv1.0;C:cygnuscygwin-b20H-i586-cygwin32ing++"
仍然 eclipse 显示错误:
Still eclipse shows the error:
在 PATH 中找不到程序g++"".
"Program "g++" not found in PATH".
如何解决?
推荐答案
今天碰到这个问题,通过以下方式解决.我在 Eclipse 设置(例如,Preferences/C++/Build/Settings/Discovery)中找到的任何地方都按下了重置默认值"按钮.之后错误消失,代码编译成功.
Today I have bumped into this problem and solved it in the following way. I pressed "Reset defaults" button everywhere I could find it in Eclipse settings (for example, Preferences/C++/Build/Settings/Discovery). After that the error disappeared and the code compiled successfully.
这篇关于Eclipse C++:“程序"g++“在 PATH 中找不到"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:Eclipse C++:“程序"g++“在 PATH 中找不到"
基础教程推荐
- 无法复制:“比较方法违反了它的一般约定!" 2022-01-01
- 问题http://apache.org/xml/features/xinclude测试日志4j 2 2022-01-01
- 存储 20 位数字的数据类型 2022-01-01
- 使用堆栈算法进行括号/括号匹配 2022-01-01
- RabbitMQ:消息保持“未确认"; 2022-01-01
- 如何对 Java Hashmap 中的值求和 2022-01-01
- REST Web 服务返回 415 - 不支持的媒体类型 2022-01-01
- 修改 void 函数的输入参数,然后读取 2022-01-01
- Spring AOP错误无法懒惰地为此建议构建thisJoinPoin 2022-09-13
- Struts2 URL 无法访问 2022-01-01
