Date: Wed, 2 Jun 1999 20:22:30 +0200 From: Hans-Bernhard Broeker Message-Id: <199906021822.UAA18078@acp3bf.physik.rwth-aachen.de> To: arg AT whangomatic DOT freeserve DOT co DOT uk (Andrew R. Gillett) Cc: djgpp AT delorie DOT com Subject: Re: -Wall - position on command line Newsgroups: comp.os.msdos.djgpp Organization: RWTH Aachen, III. physikalisches Institut B X-Newsreader: TIN [version 1.2 PL2] Reply-To: djgpp AT delorie DOT com In article you wrote: [...] > However, if I use: > gpp main.o battle.o unit.o music.o -o -Wall f_alli.exe -ljgmod -lalleg > I get loads of multiple definition errors, e.g. You managed to fool gcc completely, by putting -Wall in the *middle* of a part of the command line, which is '-o f_alli.exe'. Putting it anywhere else wouldn't have caused you problems, actually, but as is, you're trying to generate a program called '-Wall', and link f_alli.exe into it ... -- Hans-Bernhard Broeker (broeker AT physik DOT rwth-aachen DOT de) Even if all the snow were burnt, ashes would remain.