添加 -lpthread
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/tools/boost/include
export CPLUS_INCLUDE_PATH
LIBRARY_PATH=$LIBRARY_PATH:/tools/boost/lib
export LIBRARY_PATH
-I(大写i)和-L选项添加到/etc/profile
-l(小写L)编译的时候指定 比如:-lboost_thread
添加 -lpthread
CPLUS_INCLUDE_PATH=$CPLUS_INCLUDE_PATH:/tools/boost/include
export CPLUS_INCLUDE_PATH
LIBRARY_PATH=$LIBRARY_PATH:/tools/boost/lib
export LIBRARY_PATH
-I(大写i)和-L选项添加到/etc/profile
-l(小写L)编译的时候指定 比如:-lboost_thread