www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/03:46:56

Date: Fri, 5 Apr 1996 10:35:20 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
To: Kenneth Targosky <kjt AT nando DOT net>
Cc: djgpp AT delorie DOT com
Subject: Re: GNU MAKE NOT WORKING WITH GCC
In-Reply-To: <31626758.41EE@nando.net>
Message-Id: <Pine.SUN.3.91.960405103159.20066G-100000@is>
Mime-Version: 1.0

On Wed, 3 Apr 1996, Kenneth Targosky wrote:

> I just installed djgpp V.2, gnu for dos.  I also loaded the other gnu
> tools including make.  When I enter the command gcc -I..\h -c calls.c
> the complilation works fine.  When the same command is entered 
> via a makefile it does not work.  Make echos the identical command as 
> the one entered on the command line but complains, gcc may be doing 
> the complaining, that the include files can not be found.

Use forward slashes, like this:

	gcc -I../h -c calls.c

or, if you must use backslashes, escape-protect a backslash with another
one: 

	gcc -I..\\h -c calls.c

A backslash is used by GNU Make as an escape character to protect special
characters, so what it passes to gcc in your case is this command line: 

	gcc -I..h -c calls.c

which is not what you want.

- Raw text -


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