Difference between revisions of "Boost"

From HCL
Jump to: navigation, search
Line 1: Line 1:
 
http://www.boost.org/
 
http://www.boost.org/
  
Installation from sources:
+
== Installation from sources ==
 
+
1. By default, boost is configured with all libraries. To save time on building boost, you can configure it ony with the libraries you need:
1. Boost sould be configured with at least graph and serialization libraries (default: all)
 
 
<source lang="bash">
 
<source lang="bash">
 
$ ./configure --prefix=DIR --with-libraries=graph,serialization
 
$ ./configure --prefix=DIR --with-libraries=graph,serialization
Line 16: Line 15:
 
$ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH
 
$ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH
 
</source>
 
</source>
 +
 +
== Documentation ==
 +
* [http://www.boost.org/doc/libs/1_42_0/libs/graph/doc/table_of_contents.html Graph]
 +
* [http://www.boost.org/doc/libs/1_42_0/libs/serialization/doc/index.html Serialization]

Revision as of 15:17, 17 February 2010

http://www.boost.org/

Installation from sources

1. By default, boost is configured with all libraries. To save time on building boost, you can configure it ony with the libraries you need:

$ ./configure --prefix=DIR --with-libraries=graph,serialization

2. Default installation:

- DIR/include/boost_version/boost
- DIR/lib/libboost_library_versions.*

Create symbolic links:

$ cd DIR/include; ln -s boost_version/boost
$ cd DIR/lib; ln -s libboost_[library]_[version].[a/so] libboost_[library].[a/so]
$ export LD_LIBRARY_PATH=DIR/lib:$LD_LIBRARY_PATH

Documentation