MinGW-w64+MSYS配置

1.MinGW-w64

1.1下载

链接:http://sourceforge.net/projects/mingw-w64/?source=recommended

1.2配置

mingw64\bin 添加到PATH环境变量中。
ps:此时启动cmd窗口,输入 gcc -v,则可以查看到gcc编译器的版本信息。
mingw64\bin 路径下,复制 mingw32-make.exe 并命名为make.exe

2.MSYS

2.1下载

链接:http://sourceforge.net/projects/mingwbuilds/files/external-binary-packages/msys%2B7za%2Bwget%2Bsvn%2Bgit%2Bmercurial%2Bcvs-rev13.7z/download

第二种方法:

There are three places you can get MSYS: * The MinGW project, with seperate packages of all official MSYS packages. Takes a long time to download and install everything. * The all-in-one package on the MinGW-w64 download page. It is updated on request (see third option for very up to date collection) * MinGW-builds provides an ultra-inclusive MSYS package with a bunch of additional useful stuff.

  • http://sourceforge.net/p/mingw-w64/wiki2/MSYS/

all-in-one package on the MinGW-w64 download page中

  • MSYS-20111123.zip

下载链接:http://sourceforge.net/projects/mingw-w64/files/External%20binary%20packages%20%28Win64%20hosted%29/MSYS%20%2832-bit%29/

  • MSYS-20111123.zip

下载链接:http://sourceforge.net/projects/mingw-w64/?source=typ_redirect

ps:安装路径中不能有空格如Program Files

2.2配置

解压后将解压文件夹下的msys文件夹移动到mingw64的同级路径。

ps:在MSYS中,可用 where make 来查看可供调用的 make.exe 位置。

发表评论

电子邮件地址不会被公开。 必填项已用*标注