How To Compile Boost Using MinGW

To compile Boost using MinGW, do the following:

  1. Ensure that MinGW is installed at C:\MinGW\
  2. Ensure that the PATH Environment Variable contains C:\MinGW\bin\:

    set PATH=C:\MinGW\bin;%PATH%

  3. Change directories to Boost:

    cd C:\boost_1_53_0\

  4. Pass in mingw to bootstrap.bat:

    bootstrap.bat mingw

  5. 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 ( ) with GCC version 4.7.2 from MinGW ( ).

Tagged on: , , ,

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.