Mail Archives: djgpp/1999/11/01/18:45:11
Nassim Bouayad wrote:
>
> Hi,I have problrem for arguments with nasm,I have a function that is
> writed with nasm,but when I compile it,the compiler mamke an error:
> undefinied reference to LoadPcx(char *,char *)
...
> extern int LoadPcx(char *,char *);
...
> [GLOBAL _LoadPcx__FPcPc]
I don't know the name mangling rules, but I just compiled that
line with DJGPP and it mangled that name to _LoadPcx__FPcT0,
not to _LoadPcx__FPcPc.
If you don't have OBJDUMP or you aren't using it, then you
should get it and use it. Before you declare a C++ routine
in NASM you should declare it in a tiny .cpp file and "gcc -c"
it to a .o file and "objdump --syms" it to see how the names
got mangled (or you could "gcc -S" the .cpp file and edit the
resulting .s file).
--
http://www.erols.com/johnfine/
http://www.geocities.com/SiliconValley/Peaks/8600/
- Raw text -