delorie.com/archives/browse.cgi | search |
> 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.
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |