User Tools

Site Tools


MinGW for Mac OS x Installation Instructions

The DMG file contains an Mac OS X package.

This package installs all files in /usr/local/i386-mingw32-3.4.4 directory.

All tools are located in the /usr/local/i386-mingw32-3.4.4/bin directory. You can add this path to your $PATH shell variable, or invoke the tools with their full path name: for example /usr/local/i386-mingw32-3.4.4/bin/i386-mingw32-gcc for gcc.

This package is based on the Min GW 3.4.4 distribution:

Package File
binutils binutils-2.16.91-20050827-1-src.tar.gz
Ada gcc-ada-3.4.4-20050522-1-src.tar.gz
GCC Core gcc-core-3.4.4-20050522-1-src.tar.gz
C++ gcc-g++-3.4.4-20050522-1-src.tar.gz
Fortran 77 gcc-g77-3.4.4-20050522-1-src.tar.gz
Java gcc-java-3.4.4-20050522-1-src.tar.gz
Objective C gcc-objc-3.4.4-20050522-1-src.tar.gz
Win32 API w32api-3.5-src.tar.gz
MinGW Runtime mingw-runtime-3.9-src.tar.gz

All theses files are included in the macmingw-3.4.4-20050522-1-src.dmg (45.4 MB) source package.

Sample Code

Once that you installed the distribution, you can test the correct operation with the following examples. Each downloadable example includes the source files, a makefile file, and command files:

  • for compiling, open build.command file;
  • for cleaning, open clean.command file.

Theses command files call the makefile.

Hello World in C (2.7 kB)
Hello World in C++ (2.8 kB)
Handling GetLongPathName under W95 (3.2 kB)
mingwinstallation.txt · Last modified: 2006/12/26 19:47 (external edit)