Boost

Boost provides a large set of essential C++ libraries.

You can find the project home for Boost at http://www.boost.org, and you can find downloads at http://sourceforge.net/projects/boost/files/boost. Boost is updated regularly to newer versions. Download the appropriate file and unpack, perhaps into your home directory. Create environment variables for both BOOST_ROOT and the Boost version you installed. Here’s an example:

 
export BOOST_ROOT=/home/jeff/boost_1_53_0
 
export BOOST_VERSION=1.53.0

Many Boost libraries require only header files. Following the preceding instructions should allow you to build all of the examples that use Boost, with the exception of the code in Chapter 8, Legacy Challenges.

To build the code in Chapter 8, ...

Get Modern C++ Programming with Test-Driven Development now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.