如何打造提升静态库? [英] How to build boost static libs?

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

问题描述

这工作,但不建立Boost库的静态版本(也许是我错了吗?)

This works, but doesn't build static versions of boost libraries (maybe i am wrong?)

bjam --toolset=gcc --prefix=C:\boost_1_49_0-mingw install

试图发出folloving命令:

Trying to issue folloving command:

bjam --toolset=gcc --prefix=C:\boost_1_49_0-mingw --build-type=complete install

,但它不工作

推荐答案

您应该能够使用链接= static选项,让你编译库到您的二进制文件,而无需动态lib目录下:
   须藤./b2链接=静态

You should be able to use the link=static option to let you compile the library into your binary without needing the dynamic lib: sudo ./b2 link=static

检查阶段目录,以确保它会在合适的地方,然后再重新安装到任何系统目录中包含您

Check your stage directory to make sure it goes in the right spot and then re-install to whatever system directory you include.

这篇关于如何打造提升静态库?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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