linux下的boost库的安装方法是什么?
2个回答
展开全部
打开synaptic, 找到libboost-all-dev, 安装即可。
安装后可以查看boost相关库,在/usr/lib/目录下
如:/usr/lib/libboost_date_time.a /usr/lib/libboost_math_tr1f-mt.a /usr/lib/libboost_serialization-mt.so
/usr/lib/libboost_date_time-mt.a /usr/lib/libboost_math_tr1f-mt.so /usr/lib/libboost_serialization.so
/usr/lib/libboost_date_time-mt.so /usr/lib/libboost_math_tr1f.so /usr/lib/libboost_serialization.so.1.42.0
/usr/lib/libboost_date_time.so /usr/lib/libboost_math_tr1f.so.1.42.0 /usr/lib/libboost_signals.a
/usr/lib/libboost_date_time.so.1.42.0 /usr/lib/libboost_math_tr1l.a /usr/lib/libboost_signals-mt.a
/usr/lib/libboost_filesystem.a /usr/lib/libboost_math_tr1l-mt.a /usr/lib/libboost_signals-mt.so
/usr/lib/libboost_filesystem-mt.a /usr/lib/libboost_math_tr1l-mt.so /usr/lib/libboost_signals.so
/usr/lib/libboost_filesystem-mt.so /usr/lib/libboost_math_tr1l.so /usr/lib/libboost_signals.so.1.42.0
/usr/lib/libboost_filesystem.so /usr/lib/libboost_math_tr1l.so.1.42.0 /usr/lib/libboost_system.a
/usr/lib/libboost_filesystem.so.1.42.0 /usr/lib/libboost_math_tr1-mt.a /usr/lib/libboost_system-mt.a
/usr/lib/libboost_graph.a /usr/lib/libboost_math_tr1-mt.so /usr/lib/libboost_system-mt.so
/usr/lib/libboost_graph-mt.a /usr/lib/libboost_math_tr1.so /usr/lib/libboost_system.so
/usr/lib/libboost_graph-mt.so /usr/lib/libboost_math_tr1.so.1.42.0 /usr/lib/libboost_system.so.1.42.0
/usr/lib/libboost_graph.so /usr/lib/libboost_prg_exec_monitor.a /usr/lib/libboost_test_exec_monitor.a
/usr/lib/libboost_graph.so.1.42.0 /usr/lib/libboost_prg_exec_monitor-mt.a /usr/lib/libboost_test_exec_monitor-mt.a
复制代码头文件在/usr/include/boost下gnuser@ubuntu:~$ ls /usr/include/boost/
accumulators date_time.hpp io_fwd.hpp pointer_cast.hpp spirit
algorithm detail iostreams pointer_to_other.hpp spirit.hpp
aligned_storage.hpp dynamic_bitset is_placeholder.hpp pool statechart
any.hpp dynamic_bitset_fwd.hpp iterator preprocessor static_assert.hpp
archive dynamic_bitset.hpp iterator_adaptors.hpp preprocessor.hpp strong_typedef.hpp
array.hpp enable_shared_from_this.hpp iterator.hpp program_options swap.hpp
asio exception lambda program_options.hpp system
复制代码boost库命名:
比如libboost_regex-vc71-mt-d-1_34.lib,
lib: 库前缀,除了windows平台,都是这个前缀
boost_regex: boost的regex库
-mt 多线程支持
-d debug版本
安装后可以查看boost相关库,在/usr/lib/目录下
如:/usr/lib/libboost_date_time.a /usr/lib/libboost_math_tr1f-mt.a /usr/lib/libboost_serialization-mt.so
/usr/lib/libboost_date_time-mt.a /usr/lib/libboost_math_tr1f-mt.so /usr/lib/libboost_serialization.so
/usr/lib/libboost_date_time-mt.so /usr/lib/libboost_math_tr1f.so /usr/lib/libboost_serialization.so.1.42.0
/usr/lib/libboost_date_time.so /usr/lib/libboost_math_tr1f.so.1.42.0 /usr/lib/libboost_signals.a
/usr/lib/libboost_date_time.so.1.42.0 /usr/lib/libboost_math_tr1l.a /usr/lib/libboost_signals-mt.a
/usr/lib/libboost_filesystem.a /usr/lib/libboost_math_tr1l-mt.a /usr/lib/libboost_signals-mt.so
/usr/lib/libboost_filesystem-mt.a /usr/lib/libboost_math_tr1l-mt.so /usr/lib/libboost_signals.so
/usr/lib/libboost_filesystem-mt.so /usr/lib/libboost_math_tr1l.so /usr/lib/libboost_signals.so.1.42.0
/usr/lib/libboost_filesystem.so /usr/lib/libboost_math_tr1l.so.1.42.0 /usr/lib/libboost_system.a
/usr/lib/libboost_filesystem.so.1.42.0 /usr/lib/libboost_math_tr1-mt.a /usr/lib/libboost_system-mt.a
/usr/lib/libboost_graph.a /usr/lib/libboost_math_tr1-mt.so /usr/lib/libboost_system-mt.so
/usr/lib/libboost_graph-mt.a /usr/lib/libboost_math_tr1.so /usr/lib/libboost_system.so
/usr/lib/libboost_graph-mt.so /usr/lib/libboost_math_tr1.so.1.42.0 /usr/lib/libboost_system.so.1.42.0
/usr/lib/libboost_graph.so /usr/lib/libboost_prg_exec_monitor.a /usr/lib/libboost_test_exec_monitor.a
/usr/lib/libboost_graph.so.1.42.0 /usr/lib/libboost_prg_exec_monitor-mt.a /usr/lib/libboost_test_exec_monitor-mt.a
复制代码头文件在/usr/include/boost下gnuser@ubuntu:~$ ls /usr/include/boost/
accumulators date_time.hpp io_fwd.hpp pointer_cast.hpp spirit
algorithm detail iostreams pointer_to_other.hpp spirit.hpp
aligned_storage.hpp dynamic_bitset is_placeholder.hpp pool statechart
any.hpp dynamic_bitset_fwd.hpp iterator preprocessor static_assert.hpp
archive dynamic_bitset.hpp iterator_adaptors.hpp preprocessor.hpp strong_typedef.hpp
array.hpp enable_shared_from_this.hpp iterator.hpp program_options swap.hpp
asio exception lambda program_options.hpp system
复制代码boost库命名:
比如libboost_regex-vc71-mt-d-1_34.lib,
lib: 库前缀,除了windows平台,都是这个前缀
boost_regex: boost的regex库
-mt 多线程支持
-d debug版本
参考资料: www.meegozu.com/thread-1913-1-1.html
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询