How do I get source file information with dumpbin /symbols when compiling with VS 2005?

Posted by Thomas Dartsch on Stack Overflow See other posts from Stack Overflow or by Thomas Dartsch
Published on 2009-12-02T11:18:20Z Indexed on 2010/03/14 2:45 UTC
Read the original article Hit count: 410

Filed under:
|
|

I have a tool which uses the output of dumpbin /symbols to do some dependency analysis with our C/C++ libraries. When we compiled the libs with VS 6.0, the dumpbin COFF SYMBOL TABLE contained entries like

000 00000008 DEBUG  notype       Filename     | .file
    x:\mydir\mysource.c

allowing me to get the relationship between sources and defined/used symbols, which is essential for my tool. When we compile with VS 2005, these entries are missing. When I look at the libs with a hex editor, it seems that there is no filename information at all included in the binary files, so it seems not to be a dumbin problem but is compilation related. So I'm looking for a way to get the Filename entries back into my libraries when compiling with VS 2005.

© Stack Overflow or respective owner

Related posts about visual-studio-2005

Related posts about dumpbin