Saturday, March 14, 2009

Building Boost Is Easy

Building the Boost library in Windows is easy. After downloading the Boost source and the appropriate bjam binary, I extracted the Boost source under c:\boost_1_38_0 and then copy the bjam binary under the same directory. The documentation points the appropriate bjam binary to download.
Once that is done, I fire up the command line, change the directory to the extraction directory, and then type in bjam. That's it, it started building the libraries without any problem. By the way, I have Visual Studio 2008 installed.

1 comment:

cppdude said...

In version 1_39_0, it is easier to build the binaries in Windows.
1. Open up a command window.
2. Go to the boost directory.
3. Type bootstrap then wait until it finishes.
4. Type in ./bjam.

This is also documented on the how-to document included in the boost download. But for those who doesn't have time, this will be useful.