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 键盘输入解析 2022-01-01
- 在java中使用xpath和selenium解析HTML表格数据 2022-01-01
- Java ECDSAwithSHA256 签名长度不一致 2022-01-01
- 将 double 转换为 Int,向下舍入 2022-01-01
- JPA惰性列表上的流 2022-01-01
- 在springboot中如何给mybatis加拦截器 2023-04-29
- Maven:无效的目标版本:10 2022-01-01
- 如何在相机中应用自定义滤镜 [Surfaceview 预览]. 2022-01-01
- doFilter()是在servlet的工作完成之前还是之后执行的? 2022-01-01
- 将 Windows 证书导入 Java 2022-01-01
