您的位置:首页 > 其它

GCC for windows HelloWorld

2018-03-26 15:21 344 查看
1.下载

https://sourceforge.net/projects/mingw/files/latest/download?source=files 或者搜索 gcc for windows

2.安装配置

Basicsetup -> gcc G++选项就可以

3环境变量

C:\MinGW\bin加入到系统变量Path就可以记得分号,我的电脑属性,高级系统设置,环境变量,系统变量Path



4编译和运行



#include <stdio.h>
#include <windows.h>
void main(){
printf("HelloWorld\n");
system("pause");
}


编译 -> gcc Hello.c

生成 -> a.exe
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  gcc