I like to use Boost because it makes cross-platform programming easier. I also prefer to use a non-Visual Studio compiler such as MinGW. I needed to install the Boost headers (latest version) along with compiling the extended libraries. I outline the steps below (at the time I used Boost 1.48.0):
Prerequistes
- Boost
- MinGW with MSYS - I used the nice auto-installer. You could also use Visual C++ as your compiler
- MinGW & MSYS in your path (for my system it was C:\mingw\msys\1.0\bin;C:\mingw\bin)
- Lots of time to wait on the compile
Steps
- Extract Boost somewhere (takes a while)
- I used C:\boost_1_48_0 to avoid spaces in paths
- Open a command prompt (cmd) and go to C:\boost_1_48_0\tools\build\v2
- gcc --version to make sure it is in your path
- bootstrap.bat gcc
- b2.exe install --prefix=C:\boost_1_48_0
- set PATH=%PATH%;C:\boost_1_48_0\bin
- b2 -j4 toolset=gcc --build-type=complete stage
- Note that -j4 means use 4 cores. Adjust as needed.
- Your compiled libs will be in C:\boost_1_48_0\stage\lib
|