From: silkwodj AT my-dejanews DOT com Newsgroups: comp.os.msdos.djgpp Subject: Re: linking from nasm Date: Thu, 15 Oct 1998 02:46:04 GMT Organization: Deja News - The Leader in Internet Discussion Lines: 19 Message-ID: <703nld$7ts$1@nnrp1.dejanews.com> References: NNTP-Posting-Host: 204.170.214.164 X-Article-Creation-Date: Thu Oct 15 02:46:04 1998 GMT X-Http-User-Agent: Mozilla/4.0 [en] (Win95; I) X-Http-Proxy: 1.0 x10.dejanews.com:80 (Squid/1.1.22) for client 204.170.214.164 To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com >>void main() >>{ >> int a = myfunc(); >> cout << a; >>} I have been following Matt Mastracci's tutorial with success. On this basis I would have enclosed the global declaration in Nasm inside square brackets. [GLOBAL myfunc]. It is a shame that the original link to Matt's tutorial has been broken. I assume he has now graduated from the U. of Calgary? Does anyone know where to find this now? Another item for Mark. You will probably be happier if you pass an int to myfunc like int a = myfunc(5) or something. That way you will recognize what you get back in a. -----------== Posted via Deja News, The Discussion Network ==---------- http://www.dejanews.com/ Search, Read, Discuss, or Start Your Own