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.