Find out what functions a static C library has

cd1 picture cd1 · Mar 29, 2010 · Viewed 33k times · Source

I have a static C library (say mylib.a) and I was wondering if it's possible to find out what functions are implemented inside that file. I don't have a corresponding header file. what I need is like the equivalent of javap for Java.

Answer

James McNellis picture James McNellis · Mar 29, 2010

On Windows you can use dumpbin. On Linux and friends you can use nm.