Saturday, May 22, 2010

When building applications in Linux/C++, is there anyway to show which libraries have been linked in?

I would like to be able to see exactly which versions of various libraries are being used in my application executable.

When building applications in Linux/C++, is there anyway to show which libraries have been linked in?
If your application is using dynamic/shared libraries you can use


ldd MyApplication in the shell to find the libraries it depends on, i.e. which library stubs have been linked in. Static libraries, once linked, in are no longer listed in the application executable. Your only chance is to somehow force the linker to print out its libraries while it is linking. Take a look at this :


http://prefetch.net/blog/index.php/2007/...


No comments:

Post a Comment