www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2001/06/18/03:14:01

Date: Mon, 18 Jun 2001 10:13:47 +0300 (IDT)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: Adam Majer <adamm AT galacticasoftware DOT com>
cc: djgpp AT delorie DOT com
Subject: Re: Help compiling files.
In-Reply-To: <3B2D3C4A.22134A10@galacticasoftware.com>
Message-ID: <Pine.SUN.3.91.1010618101321.22931O-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Sun, 17 Jun 2001, Adam Majer wrote:

> I've just been trying to compile a few files using make, but I'm getting
> 
> F:\mesa-src\src>make -f makefile.dja
> gcc -c -I..\include;..\include\gl  api_arrayelt.c
> gcc.exe: No input files
> make.exe: *** [api_arrayelt.o] Error 1
> 
> I don't understand this. Works if I put in the gcc command manually. I
> have the PATH set and the DJGPP environemntal var.

The semi-colon is what does this: Make thinks you have two commands on
that line, so what GCC sees is just "gcc -c -I..\include".

To solve this, include the semi-colon in single or double quotes.  For
example:

  gcc -c -I"..\include;..\include\gl"  api_arrayelt.c

Btw, does -I really accept multiple directories like that?  As far as
I can tell from GCC docs, it can only accept a single directory.  So
what you really should do is modify the command like this:

  gcc -c -I..\include -I..\include\gl  api_arrayelt.c

- Raw text -


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