Sender: nate AT cartsys DOT com Message-ID: <362268C7.609A0F48@cartsys.com> Date: Mon, 12 Oct 1998 13:38:31 -0700 From: Nate Eldredge 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: linking from nasm References: Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Reply-To: djgpp AT delorie DOT com Mark A Reed wrote: > now in my .cpp file > > #include > > extern int _myfunc(int); Make that extern "C" int myfunc(int); The leading underscore is appended by the compiler, and the "C" bit keeps it from mangling the name. -- Nate Eldredge nate AT cartsys DOT com