quot;g++quot; is not recognized as an internal or external command, 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


基础教程推荐
- Java Swing计时器未清除 2022-01-01
- 如何在 JFrame 中覆盖 windowsClosing 事件 2022-01-01
- 多个组件的复杂布局 2022-01-01
- 在 Java 中创建日期的正确方法是什么? 2022-01-01
- 验证是否调用了所有 getter 方法 2022-01-01
- Java 实例变量在两个语句中声明和初始化 2022-01-01
- 不推荐使用 Api 注释的描述 2022-01-01
- 大摇大摆的枚举 2022-01-01
- 从 python 访问 JVM 2022-01-01
- 如何在 Spring @Value 注解中正确指定默认值? 2022-01-01