Mail Archives: djgpp/2000/03/07/18:26:23
Rodeo Red <rodeored AT netstep DOT net> wrote:
> This simple hello world program compiles fine but when I use -wall I get
> all the messages below.
You mistype the name of that option consistently. It's -Wall (with a
capital W), not -wall.
> If these aren't warning messaes what are they ? I thought warning
> messages would say "warning" on them.
Warnings from the compiler would, yes. But those messages you're
getting are messages from the linker, and they are error messages.
You should have got a message from the compiler driver about passing
the unknown switch '-wall' to the linker, though...
> Is djgpp the same compiler they mean when they say "gcc" ? Why does
> everyone else seem to use gcc as a command line but I have to use gpp ?
Actually, 'everyone else' is probably using 'g++' when they're linking
C++ programs. '+' is not allowed in a DOS filename, so DJGPP calls that
version of the gcc driver 'gxx' or 'gpp' instead.
> r.exe(.text+0x1ec):crt0.s: multiple definition of `__exit'
> c:/djgpp/lib/crt0.o(.text+0x1ec):crt0.s: first defined here
[...]
Looks like you somehow managed to compile 'crt0.o' into your
executable twice. Show us the exact command line(s) you used to
compile and link, and we can offer further help.
--
Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de)
Even if all the snow were burnt, ashes would remain.
- Raw text -