my dog learned polymorphism*
The moose likes Linux / UNIX and the fly likes How to find out what are in .so lib file on linux? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » Linux / UNIX
Bookmark "How to find out what are in .so lib file on linux?" Watch "How to find out what are in .so lib file on linux?" New topic
Author

How to find out what are in .so lib file on linux?

Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
I tried "ar t libABC.so" which does not work. It works on cygwin for .a files.

What else command can I use?

Thanks a lot!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

ar t works on Linux too -- for *.a files.

For .so files, you can use nm. Just "nm foo.so" will list all the symbols.


[Jess in Action][AskingGoodQuestions]
Roseanne Zhang
Ranch Hand

Joined: Nov 14, 2000
Posts: 1953
Thanks EFH
I tried it, and it gave me many symbols I am not quite sure what is what...

Does that mean there are no .o files inside .so any more?

Thanks!
Ernest Friedman-Hill
author and iconoclast
Marshal

Joined: Jul 08, 2003
Posts: 24183
    
  34

No, I don't believe there are.
 
 
subject: How to find out what are in .so lib file on linux?
 
Similar Threads
ICQ Number
Servlet Response
3.0M5
Complex DAO
what is that?