Mail Archives: djgpp/2001/06/18/03:14:01
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 -