[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Spaces in file names!!
From: |
Mark Grosen |
Subject: |
Re: Spaces in file names!! |
Date: |
Wed, 6 Nov 2002 08:17:42 -0800 (PST) |
You can also use the Short Filename (SFN) format of the path. Use dir
/x in a command (cmd) window to see the SFN. For example, your
example would probably be something like:
SDCC = c:\mywork~1\compiler\bin\sdcc.exe
Mark
--- Greg Chicares <address@hidden> wrote:
> [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'
> or
> SDCC = "C:\My Work\Compiler\Bin\sdcc.exe"
> or maybe you need to try
> '$(SDCC) -c Main.c'
> or
> "$(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;
>
>
> _______________________________________________
> Make-w32 mailing list
> address@hidden
> http://mail.gnu.org/mailman/listinfo/make-w32