[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Spaces in file names!!

From: Greg Chicares
Subject: Re: Spaces in file names!!
Date: Wed, 06 Nov 2002 10:36:48 -0500

[Please write plain text instead of html. Thanks.]

Zhang Zhenhua wrote:
> SDCC = C:\My Work\Compiler\Bin\sdcc.exe
> Main.ihx: Main.rel
>         $(SDCC) Main.rel
> Main.rel: Main.c
>         $(SDCC) -c Main.c
> But it seems that make can't create a process using the SDCC command 
> line(with spaces in it). Any body knows how to make
> that work? Thanks.

Try quoting it:
  SDCC = 'C:\My Work\Compiler\Bin\sdcc.exe'
  SDCC = "C:\My Work\Compiler\Bin\sdcc.exe"
or maybe you need to try
  '$(SDCC) -c Main.c'
  "$(SDCC) -c Main.c"

I have found that one form (single versus double quote) may
work with windows 95 or 98's command processor, but windows
2k's command processor may need another, especially if you're
using redirection. I've also seen people try things like
  SDCC = C:\My\ Work\Compiler\Bin\sdcc.exe
but all these methods are messy.

Everything is easier if you avoid using spaces in file names,
because spaces are usually used to separate tokens. In C you
would not write
  int My Variable = 2;

reply via email to

[Prev in Thread] Current Thread [Next in Thread]