| |
| Posted by Regan Heath in reply to Garett Bass | PermalinkReply |
|
Regan Heath
Posted in reply to Garett Bass
| 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 path
You 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/
|