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.
相关文章