“g ++”不被识别为内部或外部命令,MinGW [英] "g++" is not recognized as an internal or external command, MinGW

查看:346
本文介绍了“g ++”不被识别为内部或外部命令,MinGW的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的电脑上,我有Windows 7 x86。我安装MinGW,我写了路径,但是当我在cmd.exe和写g ++ -v它说:

 g ++ 不被识别为内部或外部命令。 

但是当我写make -v命令时,我需要这个学校,我在Eclipse,我甚至安装最新的java(我看到它必须安装)。

解决方案

您必须修改环境变量。请执行以下操作:




  • 从桌面右键单击计算机并单击属性。

  • 计算机属性窗口中,单击更改设置。

  • 在打开的系统属性窗口中,单击高级选项卡。

  • 单击环境变量按钮。

  • 最后,在环境变量窗口中(如下所示),突出显示系统变量部分中的路径变量,然后单击编辑按钮。使用您希望计算机访问的路径添加或修改路径行。



    C:\Program文件; C:\Winnt; C:\ Winnt \System32




此外,您可以参考此链接 p>

On my computer I have Windows 7 x86. I installed MinGW, I wrote the path but when I go in cmd.exe and write g++ -v it says:

"g++" is not recognized as an internal or external command.

But when I write the make -v command it recognizes it. I need this for school, I work in Eclipse, I even installed the latest java(I saw it must be installed).

解决方案

You have to modify environment variables. Do the following:

  • From the desktop, right-click Computer and click Properties.
  • From the Computer Properties window, click Change Settings
  • In the System Properties window which opens up, click on the Advanced tab.
  • In the Advanced section, click the Environment Variables button.
  • Finally, in the Environment Variables window (as shown below), highlight the Path variable in the Systems Variable section and click the Edit button. Add or modify the path lines with the paths you wish the computer to access. Each different directory is separated with a semicolon as shown below.

    C:\Program Files;C:\Winnt;C:\Winnt\System32

Additionally you may refer to this link

这篇关于“g ++”不被识别为内部或外部命令,MinGW的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆