====== Differences ====== This shows you the differences between two versions of the page.
— |
mingwinstallation [2006/12/26 19:47] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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 [[http://www.mingw.org/download.shtml|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 [[http://crossgcc.rts-software.org/download/macmingw-3.4.4-20050522-1-src.dmg|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 |{{c_sample.zip| c_sample.zip}} (2.7 kB)| | ||
+ | |Hello World in C++ |{{cpp_sample.zip|cpp_sample.zip}} (2.8 kB) | | ||
+ | |Handling GetLongPathName under W95 |{{getlongpathname_sample.zip|getlongpathname_sample.zip}} (3.2 kB) | |