How to list dependencies of c/c++ static library?

前端 未结 2 1471
南方客
南方客 2021-02-19 08:16

For a static library (.a file), how to list the module-level dependencies of it?

I know for a shared library (.so), we can use objdump or readelf to do

2条回答
  •  囚心锁ツ
    2021-02-19 09:07

    @Some programmer dude is right, but what you can do is build a simple program using this library statically and then check with ldd -v what are the dependencies.

提交回复
热议问题