“g++"不被识别为内部或外部命令,MinGW

quot;g++quot; is not recognized as an internal or external command, MinGW(“g++不被识别为内部或外部命令,MinGW)

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

问题描述

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

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.

但是当我编写 make -v 命令时,它会识别它.我在学校需要这个,我在 Eclipse 中工作,我什至安装了最新的 java(我看到它必须安装).

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).

推荐答案

看到make命令运行正常,我想你忘记在MinGW安装管理器中标记mingw-gcc-g++包了.

Seeing that the make command works fine, I think you forgot to mark the mingw-gcc-g++ package in the MinGW Installation Manager.

再次运行 MinGW 安装管理器并标记 mingw-gcc-g++ 进行安装,然后按 Apply Changes

Run the MinGW Installation Manager again and mark mingw-gcc-g++ for installation and press Apply Changes

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

本文标题为:“g++"不被识别为内部或外部命令,MinGW

基础教程推荐