开发者

MinGW not recognised through path variable

开发者 https://www.devze.com 2023-01-29 13:31 出处:网络
Eclipse CDT in Windows 7 is showing warnings like this: Error launching external scanner info generator (g++ -E -P -v -dD C:/Users/User/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp

Eclipse CDT in Windows 7 is showing warnings like this: Error launching external scanner info generator (g++ -E -P -v -dD C:/Users/User/workspace/.metadata/.plugins/org.eclipse.cdt.make.core/specs.cpp)

So I already set the path environment variable to C:\MinGW\bin, but if i 开发者_如何学Pythontype gcc --version in cmd the command is not recognised. However, if I change the directory to C:\MinGW\bin, it works fine.

Thanks in advance.


You can type "path" in the cmd window in order to see the path that's in effect (make sure you appended a value to the path variable and didn't replace it entirely, no spaces, etc.)

If opening a new cmd or reboot doesn't help, you can use process monitor with a filter of "process name is cmd.exe" to see where exactly cmd.exe looks for gcc and why it is failing.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号