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

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

问题描述

我想只编译线程和升压定期EX presession库,我想静态和动态库。能否请你告诉我们该怎么做?

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工具集= {你的工具集}
  变种= {发布|调试}
  线程=多链接= {静态|共享}
  {库名}

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

刚刚从{}与您选择的值替换值。对于工具的名称,您可以检查{您升压目录} \\工具\\编译\\ V2 \\用户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).

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

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