編譯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
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_regex-mgw44-mt-1_47.a
LIBS += E:\VC\boost_1_47_0\bin\gcc\lib\libboost_system-mgw44-mt-1_47.a