Linux Development

Tools

ldd - print shared library dependencies

Running ldd on an executable shows the libraries required by it. e.g.

   $ ldd /bin/ls

You may also be able to use the pkg-config utility. e.g.

   $ pkg-config gtkmm-2.4 --libs

nm - list symbols from object files

Lists symbols in a library. e.g.

Lists demangled symbols from the PostgreSQL C++ library:

   $ nm -C /usr/lib/libpqxx.a

Related Topics: GitTips


-- Frank Dean - 22 Mar 2009