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 liblibrary.so

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.

0 comments:

Post a Comment