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 中找不到"


基础教程推荐
- 从 python 访问 JVM 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01
- 多个组件的复杂布局 2022-01-01
- Java Swing计时器未清除 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01