Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

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

 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Roseanne Zhang
Ranch Hand
Posts: 1953
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 24208
35
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, I don't believe there are.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic