Mail Archives: djgpp/1996/04/05/03:46:56
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 -