D demangling filter tool?

Michel Fortin michel.fortin at michelf.com
Thu Jun 23 04:54:31 PDT 2011


On 2011-06-23 07:25:45 -0400, Robert Clipsham <robert at octarineparrot.com> said:

> On 23/06/2011 12:13, David Nadlinger wrote:
>> On 6/23/11 12:57 PM, Robert Clipsham wrote:
>>> On 23/06/2011 02:16, Michel Fortin wrote:
>>>> I made one a few months ago, but I can't seem to find it back now... Ah!
>>>> found it:
>>>> <http://www.digitalmars.com/pnews/read.php?server=news.digitalmars.com&group=digitalmars.D&artnum=129673&header>

I 
>>>> 
>>> don't suppose you could repaste the code, I can't seem to copy/paste
>>> the above, the web news reader just takes me back to its home page when
>>> I try D;
>>> 
>> 
>> https://gist.github.com/1042363
>> 
>> David
> 
> Doesn't seem to work for me with the following:
> 
> Undefined symbols for architecture i386:
>    "__Dmain", referenced from:
>        _D2rt6dmain24mainUiPPaZi7runMainMFZv in libphobos2.a(dmain2_2fa_1a5.o)
> ld: symbol(s) not found for architecture i386
> collect2: ld returned 1 exit status
> --- errorlevel 1
> 
> Unless I manually pull out the symbols and send them through it.

Works for me. Note: make sure you're redirecting stderr to ddemangle's 
stdin using 2>&1.

$ dmd u.d 2>&1 | ./ddemangle
Undefined symbols for architecture i386:
  "__Dmain", referenced from:
      extern (C) int rt.dmain2.main(int, char**).void runMain() in 
libphobos2.a(dmain2_2f9_1a5.o)
ld: symbol(s) not found for architecture i386
collect2: ld returned 1 exit status
--- errorlevel 1


-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list