May 21, 2007 when would a mangle name be prefixed with "d" ? | ||||
|---|---|---|---|---|
| ||||
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? | ||||
May 22, 2007 Re: when would a mangle name be prefixed with "d" ? | ||||
|---|---|---|---|---|
| ||||
Posted in reply to davidl | the mangle name only get 'd' prefixed when i have
default:
// version(DEBUG) writefln(`hello`); // uncomment this would result bad mangle name
assert(0);
while i didn't manage to have a smaller case reproduce it.
>
> 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?
--
使用 Opera 革命性的电子邮件客户程序: http://www.opera.com/mail/
| |||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply