delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/01/26/08:16:17

From: "John M. Aldrich" <fighteer AT cs DOT com>
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
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.     |
---------------------------------------------------------------------

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019