From: "Marp" Newsgroups: comp.os.msdos.djgpp Subject: Re: using NASM with DJGPP problems. Date: Mon, 3 Jan 2000 23:10:58 -0500 Organization: MindSpring Enterprises Lines: 13 Message-ID: <84rrjp$btb$1@nntp8.atl.mindspring.net> References: <84rfp1$rc5$1 AT news8 DOT svr DOT pol DOT co DOT uk> NNTP-Posting-Host: c7.b7.cf.21 X-Server-Date: 4 Jan 2000 04:06:17 GMT X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Langman wrote in message news:84rfp1$rc5$1 AT news8 DOT svr DOT pol DOT co DOT uk... > I have a problem with the functions. NASM uses C linkage and I have written > ALL my code in C++. > Any suggestions? > In your C++ program sources, you need to surround the prototypes of the asm functions with extern "C"{} so that the compiler knows that those function names shouldn't be mangled.