delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/07/15/05:23:48

Date: Thu, 15 Jul 1999 12:20:05 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: djgpp AT delorie DOT com
Subject: Re: cannot specify -o with -c and multiple compilations
In-Reply-To: <7mj31q$kl9$1@news101.telia.com>
Message-ID: <Pine.SUN.3.91.990715121345.21852H-100000@is>
MIME-Version: 1.0
X-MIME-Autoconverted: from QUOTED-PRINTABLE to 8bit by delorie.com id FAA23009
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Thu, 15 Jul 1999, Tonni Schmücker wrote:

> in my quest for fame I've stumpled over a problem, i've downloaded the
> tutorial from coronado enterprises, and are about to use the "make" command,
> and ends up with this error message:
> 
> "cannot specify -o with -c and multiple compilations"
> ?????

Please post the command line which Make tried to run and which resulted 
in this error message.  It is very hard to guess what was your problem 
without knowing at least that much.

The message itself seems to imply that the compiler was invoked with 
a command like this:

	gcc -c -o foo file1.c file2.c file3.c ...

What the message tells you is that when you use -c, which means "only 
compile the sources, but don't link them together", you cannot use -o, 
because each compiled file goes in its own object file (file1.o, file2.o, 
etc.).

But I have no idea why did that happen.  I'd guess that either -c or -o 
should not be there, but that's only a guess.

- Raw text -


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