编译BOOST库
bjam stage --toolset=qcc --without-graph --without-graph_parallel --without-math --without-mpi --without-python --without-serialization --without-wave --stagedir="E:VCoost_1_47_0inmgw" link=static runtime-link=shared runtime-link=static threading=multi debug release
编译选项说明
BJAM="" # boost中使用jam工具替代make工具,这里指定jam所在目录
TOOLSET=""# 指定工具链类型, acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp
TOOLSET=""# 指定工具链类型, acc | darwin | gcc | como | mipspro | pathscale | pgi | qcc | vacpp
QT项目文件中
添加
DEFINES += BOOST_THREAD_USE_LIB
添加相应库文件
INCLUDEPATH += "E:VCoost_1_47_0"
LIBS += E:VCoost_1_47_0ingccliblibboost_regex-mgw44-mt-1_47.a
LIBS += E:VCoost_1_47_0ingccliblibboost_regex-mgw44-mt-1_47.a
LIBS += E:VCoost_1_47_0ingccliblibboost_system-mgw44-mt-1_47.a
http://www.cnblogs.com/toosuo/archive/2012/02/15/2352504.html