View previous topic :: View next topic |
Author |
Message |
Rottweiler
Joined: 13 Oct 2009 Posts: 6 Location: Heber Springs, AR, USA
|
Posted: Tue Oct 13, 2009 6:14 am Post subject: WinXP install, dmd2, can't find object.d |
|
|
I'm attempting to follow the instructions at http://www.digitalmars.com/d/2.0/dmd-windows.html
When I attempt to run the samples I get this:
Code: | C:\dmd\samples\d>shell all.sh
shell 1.04
\dmd\bin\dmd hello
object.d: Error: module object cannot read file 'object.d' |
The pages google turned up didn't seem to help much. Can anyone offer any assistance? Thanks. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Tue Oct 13, 2009 6:05 pm Post subject: |
|
|
I don't know what "shell" does but the error message usually means it either can't find object.d or phobos.lib. It could also mean it can't find sc.ini which is the file with the location of object.d and phobos.lib. sc.ini needs to be in the same directory as dmd.exe. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Rottweiler
Joined: 13 Oct 2009 Posts: 6 Location: Heber Springs, AR, USA
|
Posted: Wed Oct 14, 2009 12:35 am Post subject: |
|
|
doob wrote: | I don't know what "shell" does but the error message usually means it either can't find object.d or phobos.lib. It could also mean it can't find sc.ini which is the file with the location of object.d and phobos.lib. sc.ini needs to be in the same directory as dmd.exe. |
Thanks. Shell does this, for starters. It's part of the official install instructions:
Code: | DMD=\dmd\bin\dmd
DFLAGS=
$(DMD) hello $(DFLAGS)
hello
del hello.obj hello.exe hello.map |
I'm not surprised it can't find object.d as I seem to have no such file on my system.
So where do I get object.d? Where does it go?
(And why wasn't it included in the official download?) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Wed Oct 14, 2009 4:42 am Post subject: |
|
|
Rottweiler wrote: | I'm not surprised it can't find object.d as I seem to have no such file on my system.
So where do I get object.d? Where does it go?
(And why wasn't it included in the official download?) |
If you don't have object.d, that's a serious problem. (It's an essential part of Phobos.)
I'd recommend reinstalling. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Rottweiler
Joined: 13 Oct 2009 Posts: 6 Location: Heber Springs, AR, USA
|
Posted: Wed Oct 14, 2009 4:58 am Post subject: |
|
|
jcc7 wrote: | Rottweiler wrote: | I'm not surprised it can't find object.d as I seem to have no such file on my system.
So where do I get object.d? Where does it go?
(And why wasn't it included in the official download?) |
If you don't have object.d, that's a serious problem. ... I'd recommend reinstalling. |
Thanks. What, exactly, should I reinstall? The only thing I've installed (per the instructions [1] ) is the dmd.2.034.zip file. It contains no object.d file. I re-downloaded it and checked to be sure.
I don't wish to complain, but it seems as if the installation instructions are in need of a once-over.
So where should I get object.d and where do I put it?
[1] http://www.digitalmars.com/d/2.0/dmd-windows.html |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Wed Oct 14, 2009 8:22 pm Post subject: |
|
|
dmd.2.0.34, ok you're using D2, in D2 the name is object.di and should be in the zip. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Rottweiler
Joined: 13 Oct 2009 Posts: 6 Location: Heber Springs, AR, USA
|
Posted: Thu Oct 15, 2009 12:45 am Post subject: |
|
|
doob wrote: | dmd.2.0.34, ok you're using D2, in D2 the name is object.di and should be in the zip. |
Thank you. After reworking several of the paths in all.sh and sc.ini to what is actually there per the instructions it now works fine. Thanks.
The 'pi' example app is quite cool. ![Smile](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Thu Oct 15, 2009 5:00 am Post subject: |
|
|
doob wrote: | dmd.2.0.34, ok you're using D2, in D2 the name is object.di and should be in the zip. | I had no idea that D2 had an object.di instead of object.d. (I haven't spend much time coding in D2, but I still thought I would've heard about a change like that.)
I wonder if someone should file a bug report to improve that error message:
Code: | object.d[i]: Error: module object cannot read file 'object.d[i]' |
|
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
Rottweiler
Joined: 13 Oct 2009 Posts: 6 Location: Heber Springs, AR, USA
|
Posted: Thu Oct 15, 2009 5:53 am Post subject: |
|
|
jcc7 wrote: |
I wonder if someone should file a bug report to improve that error message:
Code: | object.d[i]: Error: module object cannot read file 'object.d[i]' |
|
I'd be glad to but can't figure out how. I got registered at the puremagic bug tracker. But when I click the big green 'File an issue' button, it just gives me this screen that says
Code: | 'Add' the named tag [ ] to issues [ ] Commit |
I have no idea what to do with that. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
jcc7
Joined: 22 Feb 2004 Posts: 657 Location: Muskogee, OK, USA
|
Posted: Thu Oct 15, 2009 2:41 pm Post subject: |
|
|
Rottweiler wrote: | jcc7 wrote: | I'd be glad to but can't figure out how. I got registered at the puremagic bug tracker. But when I click the big green 'File an issue' button, it just gives me this screen that says
Code: | 'Add' the named tag [ ] to issues [ ] Commit |
I have no idea what to do with that. |
|
I don't know what happened when you tried to file a bug. (Perhaps it was a server issue or a browser issue.)
Anyway, I filed a bug on the error message: bug 3408. You should be able to add comments if I left out useful information. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
doob
Joined: 06 Jan 2007 Posts: 367
|
Posted: Thu Oct 15, 2009 7:58 pm Post subject: |
|
|
jcc7 wrote: | doob wrote: | dmd.2.0.34, ok you're using D2, in D2 the name is object.di and should be in the zip. | I had no idea that D2 had an object.di instead of object.d. (I haven't spend much time coding in D2, but I still thought I would've heard about a change like that.) |
When it was changed to use druntime. |
|
Back to top |
|
![](templates/subSilver/images/spacer.gif) |
|