9

I got a C/C++ application, i need to determine all (shared) libraries on which it is dependent, so i can share it with other people along with libraries so they don't have to install any package, on Linux.

So is it possible to determine all libraries on which a C++ application is dependent?

A little clarification, i dont have application makefiles for the moment, thats why i have to find another way.

Saqlain
  • 17,490
  • 4
  • 27
  • 33

2 Answers2

14

I think for linux you can use ldd command. You can see the man page for this command or also find this here http://linux.about.com/library/cmd/blcmdl1_ldd.htm.

Apoorva sahay
  • 1,900
  • 3
  • 28
  • 45
4

Try to use ldd which will list the dependent libraries for that executable

Raghuram
  • 3,937
  • 2
  • 19
  • 25