Boost provides free peer-reviewed portable C++ source libraries.
Download the latest version from
Unzip the boost library in some directory say
unzip boost_1_53_0.zip
Move it to /usr/local so that everyone can use it
sudo mv boost_1_53_0 /usr/local/
To use boost from code inlucde whatever code you want to use
#include <boost/some.hpp>
All the libs are in boost sub directory
No compilation is required to use it as such
Most of the boost is nothing but header files which do not require compilation as such. But there are certain Boost Libraries which are in fact platform dependent and hence will need compilation.
ReplyDeleteThis command lists them (On linux, I usually stay away from Windows):
------------------------------------------------------------------------------------
bash-4.1$ ./bootstrap.sh --show-libraries
Building Boost.Build engine with toolset gcc... tools/build/v2/engine/bin.linuxx86_64/b2
The following Boost libraries have portions that require a separate build
and installation step. Any library not listed here can be used by including
the headers only.
The Boost libraries requiring separate building and installation are:
- chrono
- context
- date_time
- exception
- filesystem
- graph
- graph_parallel
- iostreams
- locale
- math
- mpi
- program_options
- python
- random
- regex
- serialization
- signals
- system
- test
- thread
- timer
- wave
------------------------------------------------------------------------------------
This blog lists the whole process:
http://ubuntuforums.org/showthread.php?t=1180792