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, Legacy Challenges, you will need to build and link libraries from Boost. I used the following commands to build the appropriate libraries:

 
cd $BOOST_ROOT
 
./bootstrap.sh --with-libraries=filesystem,system
 
./b2

The commands I executed might work for you, but in the event they do not, refer to the instructions at http://ubuntuforums.org/showthread.php?t=1180792 (note, though, that the bootstrap.sh argument --with-library should be --with-libraries).

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
3.144.17.137