boost多线程编译出错

添加 -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

 

posted @ 2019-07-26 15:10  MoonXu  阅读(271)  评论(0编辑  收藏  举报