aspose file tools*
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
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: 24187
    
  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: 24187
    
  34

No, I don't believe there are.
 
Don't get me started about those stupid light bulbs.
 
subject: How to find out what are in .so lib file on linux?