Developer: Boost CPP libraries

From SPCTools

Jump to: navigation, search


What is it?

A very useful C++ standards package. See



All modern distributions have a Boost-libraries package, via rpm on Fedora/RedHat, etc.


Static vs Dynamic Libraries

see :

Download boost-jam (ex: uncompress to C:\boost-jam\boost-jam-3.1.13-1-ntx86)

Download boost source (ex: uncompress to C:\boost-src\boost_1_33_1)

By default, installation is C:\Boost\include and C:\Boost\lib

  • *.dll Dynamic library version.
  • *.lib Import library for the dll.
  • lib*.lib Static library version.

open windows shell (not a cygwin shell): Start->Run... "cmd.exe"

from top-level source directory (dir containing "boost-build.jam" file), run:

C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat
C:\boost-jam\boost-jam-3.1.13-1-ntx86\bjam.exe "-sTOOLS=xxxxx" install

Where "xxxxx" is vc-8_0 for Studio 2005 or msvc for VC6.

Note, this takes a *very* long time.

Visual Studio 2005

see regarding disabling "deprecated" warnings when using the boost libraries.

Visual Studio 6

Problems: serialization and program options do not build


Not officially supported, but please see TPP:Installing_on_Mac_OSX#boost_libraries

Using Boost


Make sure that you are working with the correct MSVC toolchain! For example, for Visual Studio 2005, set environmental varibles in a cmd.exe shell with

C:\Program Files\Microsoft Visual Studio 8\VC\bin\vcvars32.bat

In a source file,

#include "boost/someheader.hpp"

From a command line,


cl.exe /I "C:\Boost\include\boost-1_33_1" ...

linking (FIX THIS):

link.exe /LIBPATH "C:\Boost\lib"
Personal tools