locked
debug or release ? RRS feed

  • Question

  • Hi ppl

    I have a x.lib file. How can I know whether it is release build or debug built.

     

    Thursday, September 21, 2006 2:26 PM

Answers

  • There's no real definition of "release" or "debug" build. There are several things you can do. Your best guess is dumpbin. If the object files where built with debug information (and you can -- and in the vast majority of cases should -- generate debug information for release builds) you can look for the command line options.

    Just take a look at the .debug$S section:

    dumpbin /SECTION:.debug$S /RAWDATA x.lib

    which should give some of the normalized command line switches.

    Otherwise you might want to look for directives.

    dumpbin /DIRECTIVES x.lib

    You should see a /DEFAULTLIB switch for the runtime library {libcmt|msvcrt}Drinks. These correspond to {/MT|/MD}Drinks. The d variants are debug builds.

    -hg

    Thursday, September 21, 2006 3:33 PM