How do I get source file information with dumpbin /symbols when compiling with VS 2005?
- by Thomas Dartsch
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.