User Tools

Site Tools


mingwinstallation2

MinGW for Mac OS X Installation Instructions (Release 2, december 2006)

Two DMG files are provided, one for PowerPC based Mac, one for Intel based Mac. They contain a Mac OS X package.

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

All tools are located in the /usr/local/i386-mingw32-3.4.5/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.5/bin/i386-mingw32-gcc for gcc.

This package is based on the Min GW 3.4.5 distribution:

Package File
binutils binutils-2.17.50-20060824-1-src.tar.gz
Ada gcc-ada-3.4.5-20060117-1-src.tar.gz
GCC Core gcc-core-3.4.5-20060117-1-src.tar.gz
C++ gcc-g++-3.4.5-20060117-1-src.tar.gz
Fortran 77 gcc-g77-3.4.5-20060117-1-src.tar.gz
Java gcc-java-3.4.5-20060117-1-src.tar.gz
Objective C gcc-objc-3.4.5-20060117-1-src.tar.gz
Win32 API w32api-3.8-src.tar.gz
MinGW Runtime mingw-runtime-3.9-src.tar.gz

All theses files are included in the macmingw-3.4.5-20060117-1-src.dmg (51.6 MB) source package.

Sample Code

On may 13th 2008, the examples have been updated for release 2. Sample code for release 1 are here.

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 c_sample.zip (2.7 kB)
Hello World in C++ cpp_sample.zip (2.8 kB)
Handling GetLongPathName under W95 getlongpathname_sample.zip (3.2 kB)
mingwinstallation2.txt · Last modified: 2008/05/13 09:26 (external edit)