when would a mangle name be prefixed with "d" ?

davidl davidl at 126.com
Mon May 21 07:28:11 PDT 2007


when would a mangle name be prefixed with "d" ?
it's weird my app compiles and runs without -version=DEBUG
few version(DEBUG) in my app.
and with -version=DEBUG the source compiles, while linker emits
  Error 42: Symbol Undefined  
_D7dparser3dmd5Lexer5Lexer6numberMFPS7dparser3dmd5Token5TokenZE7dparser3dmd6Tokens3TOK5FLAGS6__initZ

take a look into the obj file, i find the symbol is mangled as

d_D7dparser3dmd5Lexer5Lexer6numberMFPS7dparser3dmd5Token5TokenZE7dparser3dmd6Tokens3TOK5FLAGS6__initZ

an extra d prefixed, any idea?



More information about the Digitalmars-d mailing list