26

Is there a command line tool that I can use (or comes with) Visual Studio that will print the names of the symbols inside a C++ static lib file in a simple and easy to parse format?

kvanbere
  • 3,289
  • 3
  • 27
  • 52

1 Answers1

35

There is the dumpbin.exe tool included with MSVC, which you can use.

For example to display all information about the library:

dumpbin.exe /ALL yourlib.lib

See MSDN for reference.

Brian A. Henning
  • 1,374
  • 9
  • 24
bash.d
  • 13,029
  • 3
  • 29
  • 42
  • 4
    Also, consider the symbols and out flag for dumpbin: `dumpbin /symbols yourlib.lib /out:symbols.txt` – Jason Apr 13 '15 at 23:16