建设加速的静态链接(MinGW的) [英] Building Boost for static linking (MinGW)

查看:174
本文介绍了建设加速的静态链接(MinGW的)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要建升压(我使用的系统和文件系统)为使用的MinGW的bjam:

I'm building Boost (I'm using System and FileSystem) for MinGW using bjam:

bjam --toolset=gcc stage

和它生成很好,但我希望能够静态链接到它(我必须对最终产品的单个文件),所以我尝试:

And it builds fine, but I want to be able to statically link to it (I have to have a single file for the final product) so I tried:

bjam --link=static --toolset=gcc stage

但我得到的结果相同。任何想法?

But I get the same output. Any ideas?

修改的连续第二个问题,我发布后回答时刻:对想我会离开这里这件事对他人虽然

edit second question in a row I've answered moments after posting :p guess I'll leave this up here for others though.

bjam --build-type=complete --toolset=gcc stage

将建设动态和静态肯定的。

Will build both dynamic and static for sure.

推荐答案

我想链接,而不是针对的bjam选项的属性。这意味着,不应该有 - 前

I think link is a property as opposed to an option for bjam. That means that there should be no -- before it.

这是我唯一的构建静态库的命令行(VISUAL C ++虽然):

This is my command line for building only static libraries (visual c++ though):

bjam install --toolset=msvc variant=release link=static threading=multi runtime-link=static

映射认为原来构建命令我想说这应该是这个样子:

Mapping that to your original build command I would say it should look something like this:

bjam --toolset=gcc link=static stage

或者

bjam stage --toolset=gcc link=static

尝试运行

bjam --help

有关的bjam的属性和选项的详细信息。

for more info on properties and options for bjam.

这篇关于建设加速的静态链接(MinGW的)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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