Thread overview
DMD for win32 may have a bug in option -I
Jan 11, 2007
firstrose
Jan 11, 2007
Alexander Panek
Jan 11, 2007
Lionello Lunesu
Jan 11, 2007
Kirk McDonald
Jan 12, 2007
firstrose
January 11, 2007
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
January 11, 2007
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
January 11, 2007
"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.


January 11, 2007
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
January 12, 2007
※ 引述 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