From: Matthew Mastracci Newsgroups: comp.os.msdos.djgpp Subject: Re: Nasm-Djgpp link errors Date: Fri, 3 Oct 1997 07:26:25 -0600 Organization: The University of Calgary Lines: 31 Message-ID: <612rr4$nr2@ds2.acs.ucalgary.ca> References: NNTP-Posting-Host: mmastrac AT acs6 DOT acs DOT ucalgary DOT ca Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII In-Reply-To: To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk On Fri, 3 Oct 1997, Sam Davies wrote: > Ok... when I try to compile the COFFTEST.ASM file (which comes with > NASM) along with the COFFTEST.C file on RHIDE, I get the following two > errors: [cut] > GLOBAL _lrotate ; [1] > GLOBAL _greet ; [1] > GLOBAL _asmstr ; [2] > GLOBAL _textptr ; [2] > GLOBAL _selfptr ; [2] > GLOBAL _integer ; [3] > > Everything else is exactly as it came in the NASM distribution .ZIP > file... but as far as I can tell, this these are completely unrelated... > Can someone who has successfully gotten NASM files to link with DJGPP > files (on RHIDE) help me? Thanks alot! The syntax of NASM may have changed between when this file was written and now. I've always used [GLOBAL _varname] to export variables. I've written a tutorial (along with examples) on how to get the two programs working together: http://www.ucalgary.ca/~mmastrac/djgppasm.doc /\/\att /\/\astracci mmastrac AT acs DOT ucalgary DOT ca GCS/GE d- s+:+ a--- C++++ UA P+ L E-- W+ N++ o K+ w+ O M- V PS++ PE++ Y+ PGP t+++ 5+++ X++ R++ tv+ b+++ DI++++ I G++ e h r* z?