Join the Stack Overflow Community
Stack Overflow is a community of 6.7 million programmers, just like you, helping each other.
Join them; it only takes a minute:
Sign up

This question already has an answer here:

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.

share|improve this question

marked as duplicate by BЈовић, dreamlax, Praetorian, Vladimir, fotanus May 29 '13 at 12:44

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

4  
Try ldd my_program. – Daniel Frey May 29 '13 at 6:17
    
Thanks Daniel, it worked. – Saqlain May 29 '13 at 6:18
up vote 5 down vote accepted

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.

share|improve this answer
    
Thanks, Apoorva sahay – Saqlain May 29 '13 at 6:21

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

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.