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 ( http://www.boost.org ) with GCC version 4.7.2 from MinGW ( http://www.mingw.org ).

Tagged on: , , ,

Leave a Reply

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

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong> <pre class="">