如何编译boost线程库 [英] how to compile boost thread library

查看:65
本文介绍了如何编译boost线程库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想只编译boost的线程和正则expresession库,我想要静态和动态libs。

I want to compile only the thread and regular expresession library of boost and I want both static and dynamic libs. Could you please let us know how to do that?

推荐答案

您可以使用bjam构建库。

You can use bjam to build libraries. Just invoke it in your boost folder.

使用参数


bjam toolset = {your toolset}
variant = {release | debug}
threading = multi link = {static | shared}
{library name}

bjam toolset={your toolset} variant={release|debug} threading=multi link={static|shared} {library name}

只需用您选择的值替换{}中的值。对于工具集名称,您可以检查{您的boost dir} \tools\build\v2\user-config.jam(您可以设置您的工具集在那里,你不必在命令行中写入)。

Just replace values from {} with values of your choice. For toolset name you can check {your boost dir}\tools\build\v2\user-config.jam (you can set your toolset there and you will don't have to write it in command line).

这篇关于如何编译boost线程库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆