Skip to content
Aug 23 / Danushka

Super-quick-how-to install Boost 1.36.0

Just because for a standard install, its really simple, but you have to read the getting started guide which has alot of info, but it’s not necessarily “to the point”, if you know what I mean.

  1. Download Boost 1.36.0 and Bjam (http://www.boost.org/users/download)
  2. Add Bjam to the PATH if you haven’t already
  3. Navigate into where you extracted the boost code, the folder is probably named “boost_1_36_0″… e.g. cd C:\Libraries\boost_1_36_0
  4. invoke bjam with the following arguments: <configuration> –toolset=msvc <output directory name>. e.g. “bjam debug –toolset=msvc stage” builds the entire boost library, and spits out debug .dll’s and .lib’s into “C:\Libraries\boost_1_36_0\stage\libs”
  5. Add/update these paths in your IDE or your LIB and INCLUDE environment variables e.g. in MSVC I updated my VC include directory list to have “C:\Libraries\boost_1_36_0″ and my VC lib directory list to have “C:\Libraries\boost_1_36_0\stage\libs” 
  6. in your C++ #include <boost/MODULE.hpp> and you should be good to go! (with MSVC the appropriate lib is automatically linked against, if you’re directories are all good, you shouldn’t have to modify your individual project settings)
  7. Write awesome C++ code!!

2 Comments

leave a comment
  1. Mike / Oct 5 2008

    if this works… God bless you

  2. Hosting / Feb 17 2009

    Good article, adding it to my bookmarks!

Leave a Comment