www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - DMD for win32 may have a bug in option -I

reply firstrose <firstrose2000_FUCK_SPAM_ hotmail.com> writes:
When I enter

dmd -I"C:\Program Files\dmd\src\phobos" hello.d

it said can't find object.d

but enter

dmd -I"C:\Progra~1\dmd\src\phobos" hello.d

it runs well

Maybe it's a bug
Jan 11 2007
next sibling parent Alexander Panek <a.panek brainsware.org> writes:
firstrose wrote:
 When I enter
 
 dmd -I"C:\Program Files\dmd\src\phobos" hello.d
 
 it said can't find object.d
 
 but enter
 
 dmd -I"C:\Progra~1\dmd\src\phobos" hello.d
 
 it runs well
 
 Maybe it's a bug
Do you have a dmd.conf in the same directory as dmd.exe? (Would be "C:\Program Files\dmd\bin\sc.ini") If so, check if the given DFLAGS has the correct paths. If not, check http://digitalmars.com/d/dcompiler.html#general . Best regards, Alex
Jan 11 2007
prev sibling next sibling parent "Lionello Lunesu" <lionello lunesu.remove.com> writes:
"firstrose" <firstrose2000_FUCK_SPAM_ hotmail.com> wrote in message 
news:eo5aku$2rro$1 digitaldaemon.com...
 When I enter

 dmd -I"C:\Program Files\dmd\src\phobos" hello.d

 it said can't find object.d

 but enter

 dmd -I"C:\Progra~1\dmd\src\phobos" hello.d

 it runs well

 Maybe it's a bug
Huh, looks like something I've fallen for a couple of times on my Win x64 machine, where 32-bit binaries are actually installed to C:\Program Files (x86)\... but the short filename still being C:\Progra~1... Also, the schizo x64 registry bit me quite often :S L.
Jan 11 2007
prev sibling parent reply Kirk McDonald <kirklin.mcdonald gmail.com> writes:
firstrose wrote:
 When I enter
 
 dmd -I"C:\Program Files\dmd\src\phobos" hello.d
 
 it said can't find object.d
 
 but enter
 
 dmd -I"C:\Progra~1\dmd\src\phobos" hello.d
 
 it runs well
 
 Maybe it's a bug
DMD uses an ancient linker, OPTLINK, which doesn't know how to handle paths with spaces in them. Despite this flaw, Walter is enamoured of this linker, as it is incredibly fast and optimized. Because of this, it is customary to not install dmd in Program Files. I have it in C:\dmd\dmd and C:\dmd\dm, for instance. The installation instructions recommend C:\dmd and C:\dm. The workaround you discovered works, also. -- Kirk McDonald Pyd: Wrapping Python with D http://pyd.dsource.org
Jan 11 2007
parent firstrose <firstrose_2000_FUCK_SPAM_ hotmail.com> writes:
※ 引述 Kirk McDonald (kirklin.mcdonald gmail.com) 之铭言
 firstrose wrote:
 DMD uses an ancient linker, OPTLINK, which doesn't know how to handle
 paths with spaces in them. Despite this flaw, Walter is enamoured of
 this linker, as it is incredibly fast and optimized.
 Because of this, it is customary to not install dmd in Program Files. I
 have it in C:\dmd\dmd and C:\dmd\dm, for instance. The installation
 instructions recommend C:\dmd and C:\dm. The workaround you discovered
 works, also.
ok thank you very much
Jan 11 2007