Is there any way to find out the list of undefined symbols in windows static library compiled using VC6?
I know the nm command will list all the symbols in linux and symbols with a tag of "U" can be identified as undefined. But, how to do it Windows?
The place to look for the symbol is where you downloaded the library's source: likely the developer of that library provides either the related source directly or some clues regarding where they get it from. For what it's worth, I use scripts ( exports and externs) to check for missing symbols in the programs which I maintain.
Because it is a library, you would not notice this until you attempt to run the program which uses this symbol. The place to look for the symbol is where you downloaded the library's source: likely the developer of that library provides either the related source directly or some clues regarding where they get it from.
Using nm, it is possible to list the symbols defined in a binary, and the --defined-only switch ignores undefined references. find $path -name \*.a -exec bash -c "nm --defined-only {} 2>/dev/null | grep $symbol && echo {}" \;
You can use dumpbin.exe /symbols on the .lib file. That lists all the symbols used, the external ones have the "External" prefix.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With