cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1997/08/14/07:33:16

From: pzp655 AT freenet DOT mb DOT ca (Jeremy Penner)
Newsgroups: comp.os.msdos.djgpp
Subject: Weird debugging problems
Date: Tue, 12 Aug 1997 23:42:55 GMT
Organization: Freenet
Lines: 42
Message-ID: <33f0f2e2.1965997@nntp.mbnet.mb.ca>
Reply-To: pzp655 AT freenet DOT mb DOT ca
NNTP-Posting-Host: 204.112.214.7
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I'm having trouble with the -g option.  I use:
gcc leveled.c -g leveled.exe tilelib.o sprite.o -lalleg
and it spews out page after page of "multiple definitions" for every
function I use.  Here's a sample:

leveled.exe(.text+0x1d8):crt0.s: multiple definition of `__exit'
c:/djgpp/lib\crt0.o(.text+0x1d8):crt0.s: first defined here
leveled.exe(.text+0x2c0):crt0.s: multiple definition of `__sbrk'
c:/djgpp/lib\crt0.o(.text+0x2c0):crt0.s: first defined here
leveled.exe(.text+0x4a4):crt0.s: multiple definition of
`_crt0_init_mcount'
c:/djgpp/lib\crt0.o(.text+0x4a4):crt0.s: first defined here
leveled.exe(.text+0x1304):crt0.s: multiple definition of `put_tile'
c:/djgpp/tmp\ccdaaaaa:leveled.c:144: first defined here
leveled.exe(.text+0x2d8):crt0.s: multiple definition of `__brk'
c:/djgpp/lib\crt0.o(.text+0x2d8):crt0.s: first defined here
leveled.exe(.text+0x4b0):crt0.s: multiple definition of
`update_screen'
c:/djgpp/tmp\ccdaaaaa:leveled.c:32: first defined here
leveled.exe(.text+0x0):crt0.s: multiple definition of `start'
c:/djgpp/lib\crt0.o(.text+0x0):crt0.s: first defined here
leveled.exe(.text+0x1470):crt0.s: multiple definition of `main'
c:/djgpp/tmp\ccdaaaaa:leveled.c:158: first defined here

This goes on for a while.  Can anyone help me?

--Jeremy Penner
.....T,,...,.,,.....  +=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-+
,,,T:,.........))8..  |    Jeremy Penner AKA ArmpitMan                     |
,.i,.,8,.......+.:#,  I    Friend Of the Naked Dancing Llama (FONDL)       I
..+..+;,......T),.I,  |    Registered Llama Tipper                         |
..,+,=X#####HiTO;:).  I    Programmer (Author of BARNEY MUTILATOR!!!!)     I
,,,,I8########8X)8,.  |    Web page author (members.tripod.com/~ArmpitMan) |
:,,=L8###########T,.  I    MOD and MIDI Composer                           I
:,.I.,LX######OT#:,,  |    Nerd with no social life whatsoever             |
,...I;IXO#####L)H,..  I    With an ASCII Llama in his .sig                 I
,...iiii;XI#8#888:,.  |    Best viewed white-on-black                      |
....iii,;:+)8##88i::  I    Some may say my .sig is too big                 I
,...iii=.,T)8##88T+:  |    And they're probably right                      |
....i=+:,,,;iO888O,,  I    Download Barney Mutilator:                      I
,..,i==i)TLXX8888TI.  |    ftp://ftp.cdrom.com/pub/games/new/barney.zip    |
,,::=+i)LOOX888888IT  +-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=+

- Raw text -


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