ftp.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2002/04/12/15:03:05

X-Authentication-Warning: delorie.com: mailnull set sender to djgpp-bounces using -f
To: djgpp AT delorie DOT com
In-reply-to: <3CB71962.1D21ED00@yahoo.com> (message from CBFalconer on Fri, 12
Apr 2002 17:41:22 GMT)
Subject: Re: New DJGPP hogs memory (was: I need help)
References: <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020410122845 DOT 00bcbbd8 AT pop DOT mail DOT yahoo DOT com>
<5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020410122845 DOT 00bcbbd8 AT pop DOT mail DOT yahoo DOT com> <5 DOT 0 DOT 2 DOT 1 DOT 0 DOT 20020411161942 DOT 00bd1eb0 AT pop DOT mail DOT yahoo DOT com> <2593-Fri12Apr2002115014+0300-eliz AT is DOT elta DOT co DOT il> <3CB6C8FA DOT 45A31BB7 AT yahoo DOT com> <3CB71962 DOT 1D21ED00 AT yahoo DOT com>
Message-Id: <E16w6K0-0004aW-00@fencepost.gnu.org>
From: Eli Zaretskii <eliz AT gnu DOT org>
Date: Fri, 12 Apr 2002 15:02:56 -0400
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> From: CBFalconer <cbfalconer AT yahoo DOT com>
> Newsgroups: comp.os.msdos.djgpp
> Date: Fri, 12 Apr 2002 17:41:22 GMT
> 
> .................
> [1] c:\c\malloc>gcc -o evilalgo.o evilalgo.c
> 
> [1] c:\c\malloc>gcc -o evilalgo.exe evilalgo.o
> evilalgo.o(.text+0x1f8):crt0.s: multiple definition of `__exit'
> c:/djgpp/lib/crt0.o(.text+0x1f0):crt0.s: first defined here
> evilalgo.o(.text+0x2da):crt0.s: multiple definition of `__sbrk'
> c:/djgpp/lib/crt0.o(.text+0x2d2):crt0.s: first defined here

That's because you forgot a -c in "gcc -o evilalgo.o evilalgo.c", so
evilalgo.o is actually an executable program, with all the library
functions already linked in, not just an object file.

- Raw text -


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