How to check what symbols are defined in a .o files? .a files? and.so files in linux?

Discussion in 'C++' started by yinglcs@gmail.com, Jan 8, 2009.

  1. Guest

    Hi,

    How to check what symbols are defined in a .o files? .a files? and .so
    files in linux? Is there any command to display symbols (e.g. method
    names, class names)?

    Thank you.
     
    , Jan 8, 2009
    #1
    1. Advertising

  2. Guest

    Re: How to check what symbols are defined in a .o files? .a files?and .so files in linux?

    > How to check what symbols are defined in a .o files? .a files? and .so
    > files in linux? Is there any command to display symbols (e.g. method
    > names, class names)?
    >

    check out the man page for the nm command.

    HTH
     
    , Jan 8, 2009
    #2
    1. Advertising

  3. Re: How to check what symbols are defined in a .o files? .a files?and .so files in linux?

    On Jan 8, 5:09 am, "" <> wrote:

    You may like to post such questions to comp.unix.programmer as this
    question is not C++ specific.

    > How to check what symbols are defined in a .o files? .a files?


    For .o and .a lookup man nm.

    > and .so
    > files in linux? Is there any command to display symbols (e.g. method
    > names, class names)?


    For .so lookup man readelf.

    --
    Max
     
    Maxim Yegorushkin, Jan 8, 2009
    #3
  4. Rolf Magnus Guest

    Re: How to check what symbols are defined in a .o files? .a files? and .so files in linux?

    wrote:

    >> How to check what symbols are defined in a .o files? .a files? and .so
    >> files in linux? Is there any command to display symbols (e.g. method
    >> names, class names)?
    >>

    > check out the man page for the nm command.


    objdump can also be used.
     
    Rolf Magnus, Jan 18, 2009
    #4
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Oodini
    Replies:
    1
    Views:
    1,779
    Keith Thompson
    Sep 27, 2005
  2. Dave
    Replies:
    3
    Views:
    498
    Alipha
    Aug 9, 2005
  3. Servando Garcia

    Symbols similiar to defined in c++ ?????

    Servando Garcia, Mar 4, 2006, in forum: Ruby
    Replies:
    4
    Views:
    102
    Anthony DeRobertis
    Mar 6, 2006
  4. Markus Dehmann
    Replies:
    19
    Views:
    244
    Anno Siegel
    Mar 27, 2006
  5. Ralph Doncaster

    can linker symbols be defined in C?

    Ralph Doncaster, Apr 28, 2014, in forum: C Programming
    Replies:
    16
    Views:
    139
    Ralph Doncaster
    Apr 30, 2014
Loading...

Share This Page