Mingw和MSYS的安装记录

阅读更多

1. 下载mingw-get并安装到C:\mingw这个目录

http://sourceforge.net/downloads/mingw/Automated%20MinGW%20Installer/mingw-get/

2. 把C:\mingw\bin加入到PATH环境变量中

3. 运行如下命令安装需要的package

mingw-get install package

当前可用的package如下:
mingwrt                     the mingw32 runtime libraries.
w32api                      the MS-Windows API bindings for mingw32.
binutils                      the GNU binary file utilities.
gcc                            the GNU C Compiler (currently v3.4.5)
g++                           the C++ front-end for GCC-3.4.5
g77                           the FORTRAN-77 front-end for GCC-3.4.5
ada                           the Ada front-end for GCC-3.4.5
java                          the java front-end for GCC-3.4.5
objc                          the Objective-C front-end for GCC-3.4.5
mingw32-make         native MS-Win32 build of GNU make.
4.下载MSYS并安装到c:\MSYS\1.0目录

http://downloads.sourceforge.net/mingw/MSYS-1.0.11.exe

5. 安装MSYS DTK到c:\MSYS\1.0目录

http://downloads.sourceforge.net/mingw/msysDTK-1.0.1.exe

6. 解压MSYS CORE到c:\MSYS\1.0目录

http://sourceforge.net/projects/mingw/files/MSYS/BaseSystem/msys-1.0.11/msysCORE-1.0.11-bin.tar.gz/download

7. 设置环境变量HOME为C:\msys\1.0\home

 

你可能感兴趣的:(GCC,C,C++,C#,Objective-C)