Installing Boost on a Windows Box

This howto is modeled off of these howto's: This howto assumes that Cygwin is installed. Cygwin is available here . Suggested mirror sites are:
  1. ftp://ftp.sunsite.utk.edu
  2. http://acumenconsultinginc.net:8088

download and install boost, for example:

   cd /cygdrive/c
   wget http://acumen.dyndns.biz/attic/boost_1_33_1.tar.gz
   tar zxvf boost_1_33_1.tar.gz
or goto Sourceforge and follow the links to download

download bjam:

   cd /cygdrive/c
   wget http://acumen.dyndns.biz/attic/boost-jam-3.1.13-1-ntx86.zip
   or goto  and follow the links to download
   you might need to get unzip.exe also
   wget http://acumen.dyndns.biz/attic/unzip.exe;  mv unzip.exe /usr/bin; chmod +x /usr/bin/unzip.exe;
or goto Sourceforge and download bjam

unzip and install bjam:

   unzip boost-jam-3.1.13-1-ntx86.zip
   cd boost-jam-3.1.13-1-ntx86
   mv bjam.exe /cygdrive/c/WINDOWS

compile and install libraries:

   cd /cygdrive/c/boost_1_33_1
   mkdir lib
   bjam "-sTOOLS=vc-8_0" install --libdir=lib

for some reason the thread library is often skipped and must be compiled exlicitly. The thread libraries are:

lib/libboost_thread-vc80-mt-1_33_1.lib
lib/libboost_thread-vc80-mt-gd-1_33_1.lib
lib/libboost_thread-vc80-mt-gd.lib
lib/libboost_thread-vc80-mt-s-1_33_1.lib
lib/libboost_thread-vc80-mt-s.lib
lib/libboost_thread-vc80-mt-sgd-1_33_1.lib
lib/libboost_thread-vc80-mt-sgd.lib
lib/libboost_thread-vc80-mt.lib

To compile the thread libraries:

bjam "-sTOOLS=vc-8_0" install --libdir=lib  --with-thread

add the root directory for boost to your INCLUDE path:

   ctrl escape 
   settings
   system
   advanced
   edit environment table
   edit INCLUDE and put c:\boost_1_33_1; at the beginning
   click OK, until dialog boxes are closed

add the root directory for boost\lib to your LIB path, and to PATH:

   ctrl escape 
   settings
   system
   advanced
   edit environment table
   edit LIB and put c:\boost_1_33_1;c:\boost_1_33_1\lib; at the end
   edit PATH and put c:\boost_1_33_1\lib; at the end
   click OK, until dialog boxes are closed