哪些Boost库只是标题?

dan*_*ave 57 c++ boost

哪些Boost库只是标题?哪些需要建立图书馆?

这样的清单是否存在?

Mik*_*our 54

需要建筑库列表是这里的类Unix系统,并在这里为Windows.

对于当前版本,1.58,两者都是相同的:

  • 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

一些库具有可选的单独编译的二进制文件:

  • Boost.DateTime
  • Boost.Graph
  • Boost.Math
  • Boost.Random
  • 如Boost.Test
  • Boost.Exception

请注意,某些库可能依赖于这些(例如,Asio依赖于评论中指出的System),因此即使您想要的库不在列表中,您仍可能需要构建一些东西.

  • asio也有lib依赖:http://www.boost.org/doc/libs/1_52_0/doc/html/boost_asio/using.html (3认同)

And*_*nov 10

实际上,甚至./bootstrap.sh --show-libraries也有些不正确,因为某些库依赖于列出的库。

可以使用Boost BCP工具获取仅标头库的列表,在每个库上启动该工具,并删除那些链接任何二进制文件的库。这就是“ 如何构建仅Header Boost”中所做的。

对于Boost 1.67.0,结果列表为:

accumulators
align
any
array
assert
assign
bind
callable_traits
circular_buffer
compatibility
concept_check
config
container_hash
conversion
convert
core
crc
detail
disjoint_sets
dynamic_bitset
endian
foreach
format
function
functional
function_types
fusion
geometry
gil
hana
heap
hof
icl
integer
interprocess
intrusive
io
iterator
lambda
lexical_cast
locale
local_function
logic
metaparse
move
mp11
mpl
msm
multi_array
multi_index
optional
phoenix
poly_collection
polygon
predef
preprocessor
property_tree
proto
ptr_container
qvm
ratio
rational
scope_exit
signals2
smart_ptr
sort
static_assert
throw_exception
tokenizer
tti
tuple
type_index
typeof
type_traits
units
unordered
utility
uuid
variant
vmd
winapi
xpressive
Run Code Online (Sandbox Code Playgroud)


Dec*_*lan 6

我认为上面的列表是不准确的,即使它来自官方文档。参见https://svn.boost.org/trac10/ticket/13222

相反,您可以查询需要构建的库列表:

>    ./bootstrap.sh --show-libraries

   The Boost libraries requiring separate building and installation are:

    atomic
    chrono
    container
    context
    coroutine
    date_time
    exception
    fiber
    filesystem
    graph
    graph_parallel
    iostreams
    locale
    log
    math
    metaparse
    mpi
    program_options
    python
    random
    regex
    serialization
    signals
    stacktrace
    system
    test
    thread
    timer
    type_erasure
    wave
Run Code Online (Sandbox Code Playgroud)

注意:在Windows上,您必须调用 bootstrap.bat构建“ b2”,然后调用b2 --show-libraries