在MinGW中使用gcc [英] Using gcc with MinGW
本文介绍了在MinGW中使用gcc的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
现在,当我尝试调用 gcc时,我已经安装了MinGW基础工具。来自命令提示符的
,仍然没有任何反应。如何使用gcc?
解决方案
将安装路径添加到%PATH%
环境变量。
做到这一点,当你启动命令提示符时,你可以这样做: SET PATH =%PATH%; C:\MinGw\bin\
。
您可以设置一个shell脚本来执行此操作
或者您可以将它添加到更环保的Windows环境变量。
So, I installed the MinGW base tools according to the instructions given and everything went fine.
Now, when I try to call gcc
from the Command Prompt, still nothing happens. How do I use gcc?
解决方案
Add the install path to your %PATH%
environment variable.
to do this, you could do: SET PATH = %PATH%;C:\MinGw\bin\
when you start the command prompt.
You could set up a shell script that does this
Or you can add it to the windows environment variables which is more permanent.
这篇关于在MinGW中使用gcc的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文