www.digitalmars.com         C & C++   DMDScript  

c++ - pragma alias

I still can't the "#pragma alias" directive to work in dmc 8.35.
E.g.

extern int foo;
extern int bar (void);

#pragma alias (foo, " foo")
#pragma alias (bar, " bar")

int main (void)
{
  foo = bar();
  return 0;
}

dmc -c foo.c, obj2asm foo.obj produces this:

FLAT    group
        ;alias  ?_foo ->  foo
        ;alias  ?_bar ->  bar
includelib SNN.lib
        extrn   __acrtused_con
        extrn   _foo
        extrn   _bar

        public  _main
_TEXT   segment
        assume  CS:_TEXT
_main:
                call    near ptr _bar
                mov     _foo,EAX
                xor     EAX,EAX
                ret

What's the ASCII 4 doing there?
Same if I produce an .exe. The 'foo' symbol shows as _foo in the .map-file.

-- 
Gisle V.


/bin/laden: Not found
Aug 29 2003