To compile Boost using MinGW, do the following:
- Ensure that MinGW is installed at C:\MinGW\
- Ensure that the PATH Environment Variable contains C:\MinGW\bin\:
set PATH=C:\MinGW\bin;%PATH%
- Change directories to Boost:
cd C:\boost_1_53_0\
- Pass in mingw to bootstrap.bat:
bootstrap.bat mingw
- Call b2.exe:
b2.exe toolset=gcc --build-type=complete stage
This will build Boost using the GCC toolset in MinGW.
NOTE: This post was tested by compiling Boost 1.53.0 ( http://www.boost.org ) with GCC version 4.7.2 from MinGW ( http://www.mingw.org ).