- Unarchive the latest version of boost (1.46.0 as of writing) into a directory of your choice (e.g.
C:/boost_1_46_0
). - Start the Visual Studio Command Prompt for the platform of your choice and navigate to where boost is.
- Run:
bootstrap.bat
to build bjam. - Run bjam: (Win32)
bjam --toolset=msvc-9.0 --build-type=complete stage
- The following command builds the boost libraries that are relevant for
libDAI: - bjam --with-graph --with-math --with-program_options --with-test link=static runtime-link=shared
- Go through steps 2 - 6 from the set of instruction above to set the environment variables.
- Edit the
Library Directories
section to include the path to your boost libraries output. (The default for the example and instructions above would beC:/boost_1_46_0/stage/lib
. Rename and move the directory first if you want to have x86 & x64 side by side (such as to<BOOST_PATH>/lib/x86
&<BOOST_PATH>/lib/x64
). - Repeat steps 2 - 6 for different platform of your choice if needed.