Qt中使用Boost

编译BOOST库

bjam stage --toolset=qcc --without-graph --without-graph_parallel --without-math --without-mpi --without-python --without-serialization --without-wave --stagedir="E:\VC\boost_1_47_0\bin\mgw" 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

QT项目文件中 

添加 

DEFINES += BOOST_THREAD_USE_LIB 

添加相应库文件

INCLUDEPATH += "E:\VC\boost_1_47_0"
LIBS += E:\VC\boost_1_47_0\bin\gcc\lib\libboost_regex-mgw44-mt-1_47.a

LIBS += E:\VC\boost_1_47_0\bin\gcc\lib\libboost_system-mgw44-mt-1_47.a 

原文地址:https://www.cnblogs.com/toosuo/p/2352504.html