How to find out what dependencies (i.e other Boost libraries) a particular Boost library requires?

ε祈祈猫儿з 提交于 2019-12-17 19:38:56

问题


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

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

Regards,


回答1:


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

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




回答2:


If you want to find out those dependencies to isolate the components your software requires, you can use bcp (Boost Copy)

It copies selected boost libraries and all its dependencies to a target location.

Eg

bcp regex /foo

copies the complete regex library and its dependencies to /foo

Disclaimer: I do not have any practical experience with bcp.

EDIT: If you only want to check on which compiled library a compiled library depends, you can either use ldd <boost_library_filename>.so on Linux or Dependency Walker on Windows.



来源:https://stackoverflow.com/questions/10818717/how-to-find-out-what-dependencies-i-e-other-boost-libraries-a-particular-boost

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!