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 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM