Microsoft equivalent of the nm command
25,148
Solution 1
Try dumpbin.exe.
Solution 2
-
Run
vcvarsall.bat
which might present in your installed path of Microsoft Visual Studio. This sets environmental variable required fordumpbin.exe
.D:>"D:\Program Files (x86)\Microsoft Visual Studio 10.0\vcvarsall.bat" x86
-
Then use
dumpbin.exe
. For exampledumpbin.exe /ALL <bin_file>
gives all symbols.
Comments
-
David Norman almost 2 years
I've long used cygwin's nm command for all my .lib symbol debugging needs, but recently I thought about referring to it in a SO answer and realized that most Windows developers don't have cygwin installed.
So what is the Microsoft equivalent to nm, i.e., what command will list the symbols exported by a .lib file, the undefined symbols in the .lib, and so forth?
For the curious, a sample nm man page is here.
-
dothebart almost 6 yearsboth links are dead :-(
-
dothebart almost 6 yearsyes, got it working. However, the MSDN documentation is next to worthless - a properly implemented
--help
argument could have superseeded it easily -
Bob Jarvis - Слава Україні over 5 yearsMicrosoft has three levels of support - primary support, advanced support, and technical support. These can be summed up with three phrases: 1) No one has ever reported an issue like that before; 2) Why would you ever want to do that?; and 3) I'm-pissed-I've-got-to-talk-to-actual-users-so-I'm-going-to-talk-real-fast-and-spout-code-like-a-fountain-and-you'd-better-get-it-all-down-the-first-time-because-I-will-NOT-repeat-myself.