Thursday, December 16, 2010

Dynamic linking of shared libraries in Linux

To list the classes, functions, and methods exported by a shared library (.so), use this command:

nm -C --defined-only -g

To view a list of shared libraries required by a program:

ldd program

Tested on Ubuntu 10.10. Note that the equivalent functionality in Windows would be provided by dumpbin.exe.


Post a Comment