To date, numpy and scipy have used versions of the mingw compilers to create 32-bit binary distributions on Windows. mingw-w64 has some major advantages over mingw, including:
The mingw-w64 project releases the supporting files to allow the standard gcc distribution to compile code that can:
Among the files the project provides are:
The project has official source releases on sourceforge: see mingw-w64 source releases.
In order to use mingw-w64 implementations to compile real code, you will need a mingw-w64 compiler toolchain.
To build software with mingw-w64 you will likely need:
The exception handling modes are:
The mingw-w64 compiler can also be built with different threading models. The options are:
See these SO posts:
In practice, for building software, you will usually want a wider range of tools than just the compiler and binutils utilities. In particular you will probably want tools like the bash shell, make, and the GNU build system.
MSYS2 provides these. msys2 is the successor of msys. Msys2 is necessary as environment for the mingw build process on Windows. - http://sourceforge.net/p/msys2/wiki/MSYS2%20installation/
‘recommended’ builds are available from the mingw-builds project via http://mingw-w64.sourceforge.net/download.php – for example:
These are common combinations of exception and thread models. You can find other combinations as well. Exception handling affects C++ development. Don’t ever link object code with different types of exception and/or thread handling!
Threads concerning the question ‘where to find mingw-w64 builds’:
Recent mingw-w64 based tools and library packages together with sources and patches are available from archlinux as well as from the msys2 maintainers.
See also this mingw-w64 writeup for Qt.
“mingw-builds” is a set of scripts and patches for compiling the GCC toolchain under Windows with the help of msys2 POSIX environment - https://github.com/niXman/mingw-builds/tree/develop recent ‘mingw-builds’ GCC toolchains can be downloaded from the mingw-w64 sf.net site: http://sourceforge.net/projects/mingw-w64/files/Toolchains%20targetting%20Win64/Personal%20Builds/mingw-builds/