Thread overview | |||||||
---|---|---|---|---|---|---|---|
|
January 11, 2007 DMD for win32 may have a bug in option -I | ||||
---|---|---|---|---|
| ||||
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 Re: DMD for win32 may have a bug in option -I | ||||
---|---|---|---|---|
| ||||
Posted in reply to firstrose | 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 Re: DMD for win32 may have a bug in option -I | ||||
---|---|---|---|---|
| ||||
Posted in reply to firstrose | "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 Re: DMD for win32 may have a bug in option -I | ||||
---|---|---|---|---|
| ||||
Posted in reply to firstrose | 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 Re: DMD for win32 may have a bug in option -I | ||||
---|---|---|---|---|
| ||||
Posted in reply to Kirk McDonald | ※ 引述 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
|
Copyright © 1999-2021 by the D Language Foundation