ColinOL

A Small Website

用户工具

站点工具


wiki:cpp:boost-thread-mt

Linux下编译boost库生成 libboost_thread-mt.a 的方法

boost库的编译的Properties:属性

  variant=debug|release            Select the build variant

  link=static|shared                    Whether to build static or shared libraries

  threading=single|multi            Whether to build single or multithreaded binaries

  runtime-link=static|shared      Whether to link to static or shared C and C++ runtime.

即使添加了 threading=mulit 还是无法生成 libboost_thread-mt.a , 只会生成 libboost_thread.a

那只有用 complete 来生成了

./bjam --build-type=complete --layout=tagged

原文:https://blog.csdn.net/langeldep/article/details/8450224

wiki/cpp/boost-thread-mt.txt · 最后更改: 2019/02/26 14:26 (外部编辑)