c++ - Eclipse C++ : "Program "g+ +"not found in PATH"

标签 c++ c eclipse g++

我在我的 Windows 7(32 位)中安装了 gpp,如图所示。

enter image description here

PATH 变量气体 g++

"%SystemRoot%\system32;%SystemRoot%;%SystemRoot%\System32\Wbem;%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\;C:\cygnus\cygwin-b20\H-i586-cygwin32\bin\g++"

仍然 eclipse 显示错误:

"Program "g++" not found in PATH".

如何解决?

enter image description here

最佳答案

今天我遇到了这个问题并通过以下方式解决了它。我在 Eclipse 设置(例如,Preferences/C++/Build/Settings/Discovery)中找到的任何地方都按下了“重置默认值”按钮。之后错误消失,代码编译成功。

关于c++ - Eclipse C++ : "Program "g+ +"not found in PATH",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/11703432/

相关文章:

c++ - 与返回引用而不是指针相关的限制

c++ - 使用 FFMPEG 编码 H264 时如何转储缓冲区?

c++ - 升压.x3 : attribute accumulates between alternatives

c - 线程自由指针

c++ - Windows 和 Linux (x86) 上的相同二进制代码

正确的 C 转换

c - 动态内存位置 C - 参数 int *

java - ECLIPSE:java.lang.NoClassDefFoundError:无法初始化类 ****

java - 适用于 Android 的 NeoMAD 构建示例 - 引用错误

java - 没有适用于 org.eclipse.swt.win32.win32 的版本 :x86_64:jar