Mail Archives: djgpp/1997/08/14/07:33:16
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 -