wiki:TryModBoost

Version 8 (modified by Beman Dawes, 9 years ago) ( diff )

Add b2 headers step

Experimenting with Modular Boost

Prerequisites

  • Git command line client installed
  • A C++ compiler installed

Installing Modular Boost

From the command line on Window:

git clone --recursive https://github.com/boostorg/boost.git modular-boost
cd modular-boost
bootstrap
.\b2 headers

Or, from the command line on POSIX-like operating systems:

git clone --recursive https://github.com/boostorg/boost.git modular-boost
cd modular-boost
./bootstrap.sh
./b2 headers

The b2 headers step creates the boost sub-directory hierarchy and populates it with links to the headers in the include sub-directories of the individual projects.

From this point on, modularized Boost behaves a lot like pre-modularized Boost.

Experimenting

If you want to build the separately compiled Boost libraries, run the usual b2 command. For Windows, that would be:

.\b2

For POSIX-like systems, it is probably:

./b2

If b2 isn't already in your path, you might want to add it now.

Testing is done just the way it has always been done. For example,

cd libs/system/test
b2

should run the tests for Boost.system, all of which should pass.

Note: See TracWiki for help on using the wiki.