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

2022-01-23 00:00:00 g++ mingw c++ eclipse

在我的电脑上,我有 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

相关文章