How can I generate a list of symbols used by a build product from a particular statically linked lib

Posted by morechilli on Stack Overflow See other posts from Stack Overflow or by morechilli
Published on 2010-04-13T21:21:24Z Indexed on 2010/04/13 21:23 UTC
Read the original article Hit count: 263

Filed under:
|
|
|

Say I have a visual studio project that builds a windows exe or dll from c++ source.

The project statically links to several library (.lib) files.

I would like to generate the subset of the available functionality in a particular .lib that the project actually links to.

A very crude way to achieve this would be to remove the .lib from the linker input list. The error list on the build would then show me all the symbols that could not be found.

Is there a better/proper way to generate this list, I'm happy with a solution that can be run as a custom build step in the project or one that runs against a built binary.

I've looked at both the linker and dumpbin command line options but have not seen anything appropriate.

© Stack Overflow or respective owner

Related posts about Windows

Related posts about c++