Boost库 - 只建什么,我需要 [英] Boost libraries - build only what I need
问题描述
我下载了Boost库,现在我想建立只有少数库。什么是这个正确的命令?显然,内置式=完整的选项给了我太多。
我使用Windows XP和希望使用的bjam编译升压和MinGW最终使用它。此刻我想我需要的库Boost.Filesystem的,Boost.ProgramOptions和Boost.System。
另外一个问题:我在哪里把只有头的库
I downloaded the Boost libraries and now I want to build only a few of the libraries. What would be the right command for this? Apparently the built-type=complete option gives me too much. I am using Windows XP and want to use Bjam to compile Boost and MinGW to finally use it. At the moment I think I need the libraries Boost.filesystem, Boost.ProgramOptions and Boost.System. Another question: Where do I put the header-only libraries?
推荐答案
在步骤5.1 的入门
您可以指示 bootstrap.sh
该库来构建
./bootstrap.sh --with-libraries=program_options,filesystem,system
另外,使用 ./ bootstrap.sh - 显示,库
地看到,不仅头所有库的列表。
alternatively, use ./bootstrap.sh --show-libraries
to see a list of all libraries that are not header only.
这篇关于Boost库 - 只建什么,我需要的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!