From: "Johan Venter (aka sphinX)" Newsgroups: comp.os.msdos.djgpp References: <13A455A61C0 AT pcc DOT tgm DOT ac DOT at> Subject: Re: ASSEMBLER question Lines: 24 X-Newsreader: Microsoft Outlook Express 4.72.3110.1 X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Message-ID: Date: Thu, 25 Feb 1999 18:54:38 +1000 NNTP-Posting-Host: 139.134.162.45 X-Trace: newsfeeds.bigpond.com 919938981 139.134.162.45 (Thu, 25 Feb 1999 21:36:21 EST) NNTP-Posting-Date: Thu, 25 Feb 1999 21:36:21 EST Organization: Telstra BigPond Internet Services (http://www.bigpond.com) To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >Hello everybody. I got the DJGPPASM documentation by Matthew >Mastracci, and I tried the C++ examples. NASM worked fine. But when I >try to link my NASM object file with a C program, there appear some >errors! Does NASM only work with C++ or what?? To link with C you need to remove the function definitions out of the ASM file, ie: If you have _foo__Fui change it to plain old _foo Also, remove the extern 'C' defs. -- Johan Venter (aka sphinX) ICQ 3643877