www.digitalmars.com         C & C++   DMDScript  

c++ - Output directory can't contain spaces

reply "jimp" <jimp02 email.com> writes:
This is similar to the problem I had on 3-2-03.  I am using the -ofilename
option to send the output file to a different directory.  The directory name
contains spaces (Documents and Settings).  I enclose the file path in
quotes, but when it is passed to the linker the quotes are omitted and the
linker can't find the file.  I have tried it in both the command line and as
an environmental variable.



Is there a way around this, or do I need to use directories without spaces?





Thanks,

jimp
Mar 05 2003
parent reply Richard Grant <fractal clark.net> writes:
In article <b451bj$1p2c$1 digitaldaemon.com>, jimp says...

Is there a way around this, or do I need to use directories without spaces?

no spaces. I would also suggest you use the <drive>:\dm as the install directory for dm. Richard
Mar 05 2003
parent reply "Gisle Vanem" <gvanem eunet.no> writes:
In article <b451bj$1p2c$1 digitaldaemon.com> wrote:

Is there a way around this, or do I need to use directories without spaces?

Have you tried with subst x: "c:\program filer\whatever" ? Gisle V.
Mar 05 2003
parent reply "jimp" <jimp02 email.com> writes:
I don't understand what you mean by subst x:
How do I do this?


"Gisle Vanem" <gvanem eunet.no> wrote in message
news:b45bil$1vpe$1 digitaldaemon.com...
 Have you tried with subst x: "c:\program filer\whatever" ?

 Gisle V.

Mar 05 2003
parent reply Arjan Knepper <ask me.to> writes:
'subst' is a windows command. Try it on the command prompt (dos prompt) 
like this:

------------------------------------------------------------------------
C:\>subst /?
Associates a path with a drive letter.

SUBST [drive1: [drive2:]path]
SUBST drive1: /D

   drive1:        Specifies a virtual drive to which you want to assign 
a path.
   [drive2:]path  Specifies a physical drive and path you want to assign to
                  a virtual drive.
   /D             Deletes a substituted (virtual) drive.

Type SUBST with no parameters to display a list of current virtual drives.

C:\>
------------------------------------------------------------------------

With subst you are able the make a certain direcory appear as the root 
of a drive. Like:

c:\>subst S: "c:\Program Files\DMC"

now you have a S: drive

C:\>S:

S:\>
S:\>dir

The dir list of c:\Program Files\DMC\

jimp wrote:
 I don't understand what you mean by subst x:
 How do I do this?
 
 
 "Gisle Vanem" <gvanem eunet.no> wrote in message
 news:b45bil$1vpe$1 digitaldaemon.com...
 
Have you tried with subst x: "c:\program filer\whatever" ?

Gisle V.


Mar 06 2003
parent "jimp" <jimp02 email.com> writes:
Looks like it might work.  I think it might be useful for any number of
things.  Thanks for the info.

jimp


"Arjan Knepper" <ask me.to> wrote in message
news:b46vjm$2v61$1 digitaldaemon.com...
 'subst' is a windows command. Try it on the command prompt (dos prompt)
 like this:

Mar 06 2003