首页
学习
活动
专区
圈层
工具
发布
社区首页 >专栏 >boost 编译

boost 编译

作者头像
用户3519280
发布2023-07-06 11:06:04
发布2023-07-06 11:06:04
9410
举报
文章被收录于专栏:c++ 学习分享c++ 学习分享

8.1 、编译静态库 /// 编译全部模块

b2 stage --toolset=msvc-14.2 --build-type=complete --stagedir=“stage/MTd/static” link=static runtime-link=static threading=multi address-model=64 debug release 1 /// 跳过指定模块

b2 stage --toolset=msvc-14.2 --without-graph --without-graph_parallel --without-python --stagedir=“stage/MTd/static” link=static runtime-link=static threading=multi address-model=64 debug release 1 8.2 、编译动态库 /// 编译全部模块

b2 stage --toolset=msvc-14.2 --build-type=complete --stagedir=“stage/MTd/shared” link=shared runtime-link=shared threading=multi address-model=64 debug release 1 /// 跳过指定模块

b2 stage --toolset=msvc-14.2 --without-graph --without-graph_parallel --without-python --stagedir=“stage/MTd/shared” link=shared runtime-link=static threading=multi address-model=64 debug release 1

参数说明 Visual studio 2019的版本号为:msvc-14.2 –toolset:指定编译工具 –without:不编译某项工具 –stagedir:指定编译后的库路径,不加这个描述默认在当前目录的stage\lib文件里面 补充: 1、静态库以 lib 开头,动态库开头没有 lib。 2、编译器名称及其版本,vc142 指的是 msvc-14.2,对应 Visual Studio 2019。 3、有 mt 代表 threading=multi,没有则代表 threading=single。 4、有 gd 代表 debug 版本,没有则代表 release 版本。 5、目标位数,x32 代表 32 位,x64 代表 64 位。 6、Boost 库的版本号,1_74 代表 Boost 1.74 版本

9、编译成功,得到指定的库 备注:有 gd 代表 debug 版本,没有则代表 release 版本

本文参与 腾讯云自媒体同步曝光计划,分享自作者个人站点/博客。
原始发表:2023-06-30,如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体同步曝光计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档