背景:项目需要用到其他team提供的动态库,编译的时候报错,提示找不到Boost库文件
adfin/Adfin_6.20152.6.20/include/AdMemory.h:23:33: error: boost/make_shared.hpp: No such file or directory
查阅Boost资料
http://www.boost.org/doc/libs/1_32_0/
http://www.boost.org/doc/libs/1_39_0/libs/smart_ptr/smart_ptr.htm
boost/make_shared.hpp属于Boost库的Memory系列Smart pointer classs templates,在Version 1.23.0中初次Release,属于Standard TR1.
但是在Version 1.39.0中才加入boost/make_shared.hpp
参照点击打开链接更新Boost库:
1.Get Boost
下载boost Version1.58,0
wget http://sourceforge.net/projects/boost/files/boost/1.58.0/boost_1_58_0.tar.bz2/download
解压缩
tar --bzip2 -xf boost_1_58_0.tar.bz2
2.The Boost Distribution
下载后文件夹目录结构
boost_1_58_0/ .................The “boost root directory” index.htm .........A copy of www.boost.org starts here boost/ .........................All Boost Header files libs/ ............Tests, .cpps, docs, etc., by library index.html ........Library documentation starts here algorithm/ any/ array/ …more libraries… status/ .........................Boost-wide test suite tools/ ...........Utilities, e.g. Boost.Build, quickbook, bcp more/ ..........................Policy documents, etc. doc/