www.delorie.com/archives/browse.cgi | search |
Sender: | nate AT cartsys DOT com |
Message-ID: | <364DEF52.D080ABB1@cartsys.com> |
Date: | Sat, 14 Nov 1998 13:00:02 -0800 |
From: | Nate Eldredge <nate AT cartsys DOT com> |
X-Mailer: | Mozilla 4.05 [en] (X11; I; Linux 2.0.35 i486) |
MIME-Version: | 1.0 |
To: | djgpp AT delorie DOT com |
Subject: | Re: NASM "name mangling" |
References: | <72ifbf$4qm$1 AT news DOT metronet DOT de> <364D09BB DOT 1DA3613A AT montana DOT com> |
Reply-To: | djgpp AT delorie DOT com |
bowman wrote: > > Felix wrote: > > > > I'm using NASM 0.97 and I'm having problems with the "name mangling" feature > > test.cpp: > > extern int nasmtest(int* x, int* y); > > try: > > extern "C" int nasmtest(int*x, int* y); > > and leave the assembler name alone. Rather, make the assembler name `_nasmtest'. DJGPP prepends underscores to external identifier names. And don't forget the GLOBAL. -- Nate Eldredge nate AT cartsys DOT com
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |