Download
MinGW-w64 provides different options on the main download page. In general, there are three kinds of files:
- Source files: if you're reading this, you probably don't want these.
- Automated builds: these are daily or weekly builds of different versions of the toolchain components, packaged together in one bundle. Here there are also Linux and Cygwin cross-compilers.
- Automated builds with the 1.0 version tag are GCC 4.5.
- Automated builds without the 1.0 version in their name are GCC trunk.
- Personal builds: these are builds made by users, and approved by the developers and maintained by active users. They usually provide more features than the autobuilds.
The file naming scheme is explained below, with examples:
- mingw-w64-1.0-bin_x86_64-linux_20110805.tar.bz2: builds 64-bit Windows binaries, runs on 64-bit Linux, uses the 1.0 mingw-w64 release, and was built on 2011/08/05.
- mingw-w32-bin_i686-cygwin-1.7.8-1_20110719.tar.bz2: builds 32-bit Windows binaries, runs on 32-bit Cygwin 1.7.8, uses GCC and mingw-w64 trunk, and was built on 2011/07/19.
- mingw-w32-bin_i686-mingw_20110624.zip: builds 32-bit Windows binaries, runs on 32-bit (and 64-bit) Windows, uses GCC and mingw-w64 trunk, and was built on 2011/06/24.
- x86_64-w64-mingw32-gcc-4.6.2-1_rubenvb.7z: builds 64-bit Windows binaries, runs on 64-bit Windows, and uses GCC 4.6.2 (prerelease).
It can be hard to find what you're looking for there, so here is a list of subdirectories you might be interested in:
- Win64: Toolchains that are made to build 64-bit Windows applications.
- Win32: Toolchains that are made to build 32-bit Windows applications.
- mingw-w64: mingw-w64 crt source snapshots. Only needed if you want to *build* the mingw-w64 CRT, which is not necessary to use MinGW-w64 toolchains
Installing
To install a downloaded toochain package, just unzip it to a directory of your choice (for example C:\mingw64). Then you need to add the toolchain executables to PATH. For cmd.exe, this would be
set PATH=C:\mingw64\bin;%PATH%
You can set this system/user wide in the Windows Control panel.
Downloading mingw-w64 sources
In the Toolchain Sources subdirectory, you can find the source packages used to build the various binary distributions.