I have a static library static_library.a
How to list functions and methods realized there. or at least how to look is there concrete function 'FUNCTION_NAME' realized?
Write
nm static_library.a
This gives you complete list of symbols in the library.
frankc
Use nm <library>
as mentioned.
If this is a library built from C++ you should use the nm --demangle
option to get back the original symbol names rather than their "mangled" versions.
来源:https://stackoverflow.com/questions/2714287/function-names-extraction-from-static-library