[stackoverflow] 哪个boost库是header-only?

本文详细列举了Boost库中哪些部分仅包含头文件(header-only),哪些部分需要编译链接成库文件。这对于理解Boost库组件如何使用及依赖管理非常有用。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Which boost libraries are header-only?

问题描述:
Which boost libraries are header only? And which require building libs? Does such a list exist?
哪个boost库是header only?其中哪些需要构建libs?有这样的列表吗?

回答:
The list of libraries that require building is here for Unix-like systems, and here for Windows.

For the current release, 1.58, both are the same:

Boost.Chrono
Boost.Context
Boost.Filesystem
Boost.GraphParallel
Boost.IOStreams
Boost.Locale
Boost.MPI
Boost.ProgramOptions
Boost.Python
Boost.Regex
Boost.Serialization
Boost.Signals
Boost.System
Boost.Thread
Boost.Timer
Boost.Wave

A few libraries have optional separately-compiled binaries:
Boost.DateTime
Boost.Graph
Boost.Math
Boost.Random
Boost.Test
Boost.Exception

Note that some libraries may depend on these (for example, Asio depends on System as pointed out in the comments), so you may still need to build something even if the library you want isn’t on the list.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值