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