From: "John M. Aldrich" Newsgroups: comp.os.msdos.djgpp Subject: Re: dumb linking question Date: Sun, 26 Jan 1997 04:24:29 -0800 Organization: Two pounds of chaos and a pinch of salt Lines: 24 Message-ID: <32EB4CFD.7784@cs.com> References: <32eaacbb DOT 8162931 AT ursa DOT smsu DOT edu> <5ceg0m$dt3 AT flex DOT uunet DOT pipex DOT com> Reply-To: fighteer AT cs DOT com NNTP-Posting-Host: ppp109.cs.com Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp nikki wrote: > > then i compiled another piece of code, something.c under rhide, i forget what the command line version of that would be in gcc but i get another .o file. and finally.. > > gcc -o test wibble.o something.o This may sound silly, but have you tried reversing the order of the files on the command line? Maybe putting something.o before wibble.o will make it work right. Also try prepending an underscore before the name of the label in the assembly module. DJGPP expects all identifiers in object code to have a prepended underscore. P.S.: Please try to keep your lines shorter than 80 characters - they are very hard to read. -- --------------------------------------------------------------------- | John M. Aldrich, aka Fighteer I | fighteer AT cs DOT com | | Call me for your free AOL disk! | http://www.cs.com/fighteer | | Chain letters, work-at-home schemes, free long distance, etc., | | are ILLEGAL! Keep the Internet litter-free... don't SPAM. | ---------------------------------------------------------------------