www.digitalmars.com         C & C++   DMDScript  

c++.dos.32-bits - Internal error

reply "Gisle Vanem" <gvanem eunet.no> writes:
The following file:

  extern const char cdecl x86_type;
  #pragma alias (x86_type, "x86_type")
 int main (void) {}

causes an internal error:

  e:\net\watt\src>dmc test.c
  Internal error: nwc 749

I need the alias to avoid the '_' prefix. The variable is allocated
in an external asm-file.

--gv
Apr 13 2003
parent reply "Walter" <walter digitalmars.com> writes:
For now, you can:

1) change the .asm file
2) use __pascal instead of __cdecl
3) use patchobj to change the name in the .obj file


"Gisle Vanem" <gvanem eunet.no> wrote in message
news:b7cqh2$29ot$1 digitaldaemon.com...
 The following file:

   extern const char cdecl x86_type;
   #pragma alias (x86_type, "x86_type")
  int main (void) {}

 causes an internal error:

   e:\net\watt\src>dmc test.c
   Internal error: nwc 749

 I need the alias to avoid the '_' prefix. The variable is allocated
 in an external asm-file.

 --gv
Apr 13 2003
parent reply "Gisle Vanem" <gvanem eunet.no> writes:
"Walter" <walter digitalmars.com> wrote:
 For now, you can:

 1) change the .asm file
 2) use __pascal instead of __cdecl
 3) use patchobj to change the name in the .obj file
The c/asm sources are compiled with other compilers too (into a lib), so that's not an option. Will it be fixes in next version? I'm using the latest. AFAICT it's 8.33.13. --gv
Apr 14 2003
parent "Walter" <walter digitalmars.com> writes:
Patchobj will still work - you can use it on the output of DMC.

"Gisle Vanem" <gvanem eunet.no> wrote in message
news:b7e089$5t3$1 digitaldaemon.com...
 "Walter" <walter digitalmars.com> wrote:
 For now, you can:

 1) change the .asm file
 2) use __pascal instead of __cdecl
 3) use patchobj to change the name in the .obj file
The c/asm sources are compiled with other compilers too (into a lib), so that's not an option. Will it be fixes in next version? I'm using the latest. AFAICT it's 8.33.13. --gv
Apr 14 2003