Thursday, February 01, 2007

Boost C++ Libraries

The Boost libraries found at http://www.boost.org are wonderful. Been using them for years.

Here are the build instructions:

  1. Download latest boost source
  2. Download bjam.exe
  3. Extract boost source
  4. cd into the newly created directory
  5. bjam "-sTOOLS=TOOLKIT" --prefix=PREFIX install

Replace TOOLKIT with the appropriate toolkit for your compiler. That list can be found here http://www.boost.org/more/getting_started.html#step2. Replace PREFIX with the prefix of choice Windows Default: C:\Boost. Others Default to: /usr/local on Unix. Linux, etc.

So if your using Visual Studio 2005 SP1 and want boost to be installed onto your D drive the command would be:
bjam "-sTOOLS=vc-8_0" --prefix=D:\Boost install
It's that simple. What you get from Boost? OS independent thread code, a good shared pointer implementation, and more.


No comments: