mingw下载

[引用〕windows上的gnu开发平台:mingw
[ yin yong windows shang de gnu kai fa ping tai mingw

mingw:即minimalist
mingw ji minimalist

gnu(gnu's not
gnu gnu's not

unix,对unix向上兼容的完整的自由软件系统(free software
unix dui unix xiang shang jian rong de wan zheng de zi you ruan jian xi tong (free software

system),“free”指的是自由(freedom),而不是价格。你可能需要或者不需要为获取gnu软件而支付费用。不论是否免费,一旦你得到了软件,你在使用中就拥有三种特定的自由。首先是复制程序并且把它送给你的朋友或者同事的自由;而后是通过获取完整的源代码,按照你的意愿修改程序的自由;最后是发布软件的改进版并且有助于创建自由软件社团的自由。)
system) free zhi de shi zi you freedom er bu shi jia ge ni ke neng xu yao huo zhe bu xu yao wei huo qu gnu ruan jian er zhi fu fei yong bu lun shi fou mian fei yi dan ni de dao le ruan jian ni zai shi yong zhong jiu yong you san zhong te ding de zi you shou xian shi fu zhi cheng xu bing qie ba ta song gei ni de peng you huo zhe tong shi de zi you er hou shi tong guo huo qu wan zheng de yuan dai ma an zhao ni de yi yuan xiu gai cheng xu de zi you zui hou shi fa bu ruan jian de gai jin ban bing qie you zhu yu chuang jian zi you ruan jian she tuan de zi you

for
for

windows。它是一些头文件和函数库的集合,该集合允许人们在没有第三方动态链接库的情况下使用gcc(gnu
windows ta shi yi xie tou wen jian he han shu ku de ji he gai ji he yun hu ren men zai mei you di san fang dong tai lian jie ku de qing kuang xia shi yong gcc gnu

compiler c)产生win32程序。
compiler c chan sheng win32 cheng xu

mingw主要由gnu binary
mingw zhu yao you gnu binary

utilities、gcc和gdb组成。同时还包括一些必要的库,例如libc(c
utilities gcc he gdb zu cheng tong shi hai bao kuo yi xie bi yao de ku li ru libc c

runtime),及专门用于win32环境的api接口库。如果你想学习linux环境下的编程,而又不想装linux,那你就装一个mingw吧。
runtime ji zhuan men yong yu win32 huan jing de api jie kou ku ru guo ni xiang xue xi linux huan jing xia de bian cheng er you bu xiang zhuang linux na ni jiu zhuang yi ge mingw ba

msys:minimal gnu(posix)system on
msys minimal gnu posix system on

windows,是一个小型的gnu环境,包括基本的bash,make等等。是windows下最优秀的gnu环境。(是否厌倦了cygwin蜗牛般的shell环境,试试msys中的rxvt吧)
windows shi yi ge xiao xing de gnu huan jing bao kuo ji ben de bash make deng deng shi windows xia zui you xiu de gnu huan jing shi fou ya juan le cygwin wo niu ban de shell huan jing shi shi msys zhong de rxvt ba

mingw & msys的主页:http://mingw.sourceforge.net/
mingw & msys de zhu xie http://mingw.sourceforge.net/

配置mingw环境
pei zhi mingw huan jing

mingw + msys + w32api
mingw + msys + w32api

1、到http://sourceforge.net/projects/mingw/下载mingw(我的版本是mingw-
1 dao http://sourceforge.net/projects/mingw/ xia zai mingw wo de ban ben shi mingw-

3.1.0-1.exe)
3.1.0-1.exe

安装解压到 d:\mingw目录
an zhuang jie ya dao d:\mingw mu lu

在环境变量path中加入 d:\mingw\bin
zai huan jing bian liang path zhong jia ru d:\mingw\bin

2、下载msys(我的版本是msys-1.0.10.exe)
2 xia zai msys wo de ban ben shi msys-1.0.10.exe

安装过程根据提示设置mingw的路径。
mingw下载

an zhuang guo cheng gen ju ti shi she zhi mingw de lu jing
mingw xia zai


3、下载win32api包(我的版本w32api-3.2-src.tar.gz)
3 xia zai win32api bao wo de ban ben w32api-3.2-src.tar.gz

解压到d:\src\w32api-3.2目录;
jie ya dao d:\src\w32api-3.2 mu lu

在msys环境下
zai msys huan jing xia

$ cd
$ cd

/d/src/w32api-3.2
/d/src/w32api-3.2

$ ./configure
$ ./configure

--prefix=/d/mingw/
--prefix=/d/mingw/

$ make
$ make

$ make install
$ make install

注意:mingw的bin目录有一个mingw32-make.exe,msys的bin目录下也有一个make.exe。至于为什么会有mingw32-make.exe这个名字,mingw的faq中说
zhu yi mingw de bin mu lu you yi ge mingw32-make.exe msys de bin mu lu xia ye you yi ge make.exe zhi yu wei shen me hui you mingw32-make.exe zhe ge ming zi mingw de faq zhong shuo

why is make named mingw32-make.exe?
why is make named mingw32-make.exe?

the "native" (i.e.: msvcrt dependent) port of make is lacking in
the "native" (i.e.: msvcrt dependent) port of make is lacking in

some functionality and has modified functionality due to the lack
some functionality and has modified functionality due to the lack

of posix on win32. there also exists a version of make in the msys
of posix on win32. there also exists a version of make in the msys

distribution that is dependent on the msys runtime. this port
distribution that is dependent on the msys runtime. this port

operates more as make was intended to operate and gives less
operates more as make was intended to operate and gives less

headaches during execution. based on this, the mingw
headaches during execution. based on this, the mingw

developers/maintainers/packagers decided it would be best to rename
developers/maintainers/packagers decided it would be best to rename

the native version so that both the "native" version and the msys
the native version so that both the "native" version and the msys

version could be present at the same time without file name
version could be present at the same time without file name

collision.
collision.


mingw下载