如何找出特定 Boost 库需要哪些依赖项(即其他 Boost 库)?

2021-12-24 00:00:00 c++ boost

对于任何 C++ Boost 库,如何找出它需要哪个 Boost 库?

For any C++ Boost library, how can one find out which Boost library(ies) it requires ?

示例(虽然不是必需的工作示例):Boost 库test"需要 Boost 库date_time".

Example (not necessary a working example though): Boost library "test" requires Boost library "date_time".

问候,

推荐答案

boost 附带了一个工具来收集库的依赖项.

boost comes with a tool to gather the dependencies of a library.

它被称为 bcp.如果您只需要文件列表,则必须使用 --list 选项.

It is called bcp. If you just want a list of files, you have to use the --list option.

相关文章