首页 > 其他 > 详细

MinGW 安装

时间:2014-12-31 18:40:19      阅读:274      评论:0      收藏:0      [点我收藏+]

一、概要

    官网: http://www.mingw.org/  下载安装地址: http://sourceforge.net/projects/mingw/files/  下载 Installer 下面的 mingw-get-setup.exe

    下载之后运行即可,这个是 获取安装包的 程序。


二、

    之后,便可选择安装 GCC,GCC++,JAVA,Object-C 等编译器。

    安装之后(默认安装路径 C:\MinGW\bin) ,便会看到很多 EXE 及 DLL 文件。然后将 C:\MinGW\bin 添加至 系统PATH

D:\>gcc --version
gcc (GCC) 4.8.1
Copyright (C) 2013 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

    说明已经安装成功。


    然后简单测试。

D:\>vim a.c
#include <stdio.h>
int main(){
    printf("hello world!");
    return 0;
}
# 编译
D:\>gcc a.c

# 执行
D:\>a.exe
hello world!
D:\>


MinGW 安装

原文:http://my.oschina.net/lpe234/blog/362778

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!