First, you must have the correct PATH, INCLUDE, and LIB environment variables in the shell. To do this, call the file " vcvarsall.bat " (or similar) with the parameter:
vcvarsall.bat x86
Then you need to build bjam (you can also download it from the Boost page, but it's almost as fast). Go to the tools\jam\src folder in Boost and type:
build.bat
It should create a bin.ntx86 subfolder containing the bjam.exe file. For convenience, copy it to the main Boost folder. Then you can build bcp. Go to the tools\bcp and type:
..\..\bjam.exe
In the main Boost folder, you can create any library you want:
bjam toolset=msvc –-with-{library}
where {library} is one of the libraries to build. All built-in libraries can be shown with:
bjam –-show-libraries
There are a few more options for building bjam. Some options with keywords that you can specify:
variant=debug|release link=shared|static threading=multi|single
Example:
bjam toolset=msvc –-with-filesystem threading=multi variant=debug stage
For more information, visit the Boost documentation page .
Edit: Updated link to point to latest Boost documentation
Edit: Fixed parameters --with- {library} and --show-libraries
vividos Jan 13 '09 at 20:24 2009-01-13 20:24
source share