delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/02/14:43:49

Date: Wed, 2 Jun 1999 20:22:30 +0200
From: Hans-Bernhard Broeker <broeker AT physik DOT rwth-aachen DOT de>
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 <MPG DOT 11bf783f9ba8f62598acfe AT news DOT freeserve DOT net> 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.

- Raw text -


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