How to list the functions in a .a library on Linux

How to list the functions in a .a library on Linux?

You can use the nm command:

The nm utility shall display symbolic information appearing in the object file, executable file, or object-file library named by file. If no symbolic information is available for a valid input file, the nm utility shall report that fact, but not consider it an error condition.

The common usage:

nm lib.a

it will prints the names.

For more options, check the nm manual.

Answered by anonymous.

Leave a Reply

Your email address will not be published. Required fields are marked *