安装minGW后,无法识别gcc命令 [英] After installing minGW, gcc command is not recognized
本文介绍了安装minGW后,无法识别gcc命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经安装了minGW,并且有一个文件"test.c".
I have installed minGW, and I have a file "test.c".
在保存"test.c"文件的目录中,我在命令提示符下键入了gcc test.c -o demo
.但这没有用;我收到此消息:
I typed gcc test.c -o demo
at the command prompt, while in the directory where I saved the "test.c" file. But it didn't work; I got this message:
gcc无法识别为内部或外部命令,可操作程序或批处理文件
gcc is not recognized as internal or external command, operable program or batch file
如何使gcc
命令在带有minGW的Windows上运行?
How do I make the gcc
command work on Windows with minGW?
推荐答案
在Path Variable
设置上您不见了.请参阅此页面上的环境设置"部分:
You are missing on Path Variable
settings. Refer the 'Environment Settings' section on this page :
http://www.mingw.org/wiki/Getting_Started
这篇关于安装minGW后,无法识别gcc命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文