delorie.com/archives/browse.cgi | search |
Sender: | nate AT cartsys DOT com |
Message-ID: | <362268C7.609A0F48@cartsys.com> |
Date: | Mon, 12 Oct 1998 13:38:31 -0700 |
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: linking from nasm |
References: | <Pine DOT GSO DOT 3 DOT 96L DOT 981012134800 DOT 4282A-100000 AT unixs3 DOT cis DOT pitt DOT edu> |
Reply-To: | djgpp AT delorie DOT com |
Mark A Reed wrote: > now in my .cpp file > > #include <iostream.h> > > 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
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |