digitalmars.D - Error reading file 'object.d'
- Garett Bass (19/19) Aug 02 2004 I'm trying to get my v0.97 D compiler configured properly. I've placed
- Regan Heath (12/32) Aug 02 2004 You need to place the dmd/bin folder in your path, nothing else eg.
- Garett Bass (8/8) Aug 03 2004 Thanks to Regan Heath for the speedy reply. It turns out my problem was...
I'm trying to get my v0.97 D compiler configured properly. I've placed the "dm" and "dmd" folders in my path, and I can call "dmd.exe" without problems. I have not altered the paths within the "dmd" folder, nor have I altered sc.ini. When I try to compile the sample programs, I get an error message: Error: Error reading file 'object.d' My *unaltered* sc.ini looks like this: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\src\phobos" LINKCMD=% P%\..\..\dm\bin\link.exe If I copy object.d to the "samples\d" folder I can compile the sample programs without errors. I'd appreciate some advice on correctly configuring the compiler so it can find "object.d" in the normal path, "..\src\phobos", as specified in sc.ini. Regards, Garett
Aug 02 2004
On Mon, 2 Aug 2004 23:53:54 -0500, Garett Bass <gtbass studiotekne.com> wrote:I'm trying to get my v0.97 D compiler configured properly. I've placed the "dm" and "dmd" folders in my pathYou need to place the dmd/bin folder in your path, nothing else eg. I installed to d:\d\dmd and d:\d\dm and my path setting includes d:\d\dmd\bin In the sc.ini below DFLAGS is used to locate object.d, I believe % P% is replaced by the path in which sc.ini exists (not 100% sure), so in my case "d:\d\dmd\bin", meaning object.d should be in: d:\d\dmd\bin\..\src\phobos" which it is for me., and I can call "dmd.exe" without problems. I have not altered the paths within the "dmd" folder, nor have I altered sc.ini. When I try to compile the sample programs, I get an error message: Error: Error reading file 'object.d' My *unaltered* sc.ini looks like this: [Version] version=7.51 Build 020 [Environment] LIB="% P%\..\lib";\dm\lib DFLAGS="-I% P%\..\src\phobos" LINKCMD=% P%\..\..\dm\bin\link.exe If I copy object.d to the "samples\d" folder I can compile the sample programs without errors. I'd appreciate some advice on correctly configuring the compiler so it can find "object.d" in the normal path, "..\src\phobos", as specified in sc.ini. Regards, Garett-- Using M2, Opera's revolutionary e-mail client: http://www.opera.com/m2/
Aug 02 2004
Thanks to Regan Heath for the speedy reply. It turns out my problem was the path I had placed the "dmd" folder under, within a directory named "Digital Mars". Apparently the include flag doesn't like paths with embedded spaces. Changing to a path with no spaces, ie. "Digital_Mars", solved my problem. Placing "dmd" in a drive's root path conflicts with my personal sense of order. Regards, Garett
Aug 03 2004