学习boost 从安装boost开始。
1. 下载boost:http://www.boost.org/
本文章下载的版本是:boost_1_58_0.tar.bz2
2. 解压在某个路径下,比如 $HOME/usr
$ make $HOME/usr
$ mv boost_1_58_0.tar.bz2 $HOME/usr
$ cd $HOME/usr
$ tar -xjvf boost_1_58_0.tar.bz2
其实到这里,就基本上可以用boost了。
用boost官网的原话是:
Most Boost libraries are header-only: they consist entirely of header files