New to D, path errors under WinXP

Regan Heath regan at netmail.co.nz
Mon Sep 10 13:23:10 PDT 2007


Johannes wrote:
> First, is there any way other than Web-News to search the D forum
> archives? Or any way of making an inclusive search with Web-News?

I just use the archive links on the http://digitalmars.com/D page, or 
google i.e. google for "site:digitalmars.com/D <thing I want>"

> Anyway, I'm trying to compile some examples under D for Windows,
> under Windows XP SP2. I've placed the files in the proper places in
> C:\DM, C:\DMD and C:\D\LIB and C:\D\IMPORT. (I know DOS well) I've
> also set up the path to the C:\DM\BIN and C:\DMD\BIN dirs.
> 
> Somehow the D compiler can't find the Import modules no matter what,
> unless I copy them all to the same folder.
> 
> Does D work for Windows or is it an untested source release?

It works. :)

Edit C:\DMD\BIN\SC.INI, eg.

[Version]
version=7.51 Build 020

[Environment]
LIB="%@P%\..\lib";%@P%\..\..\dm\lib
DFLAGS="-I%@P%\..\src\phobos"
LINKCMD=%@P%\..\..\dm\bin\link.exe

Add your import and lib paths, eg.

[Version]
version=7.51 Build 020

[Environment]
LIB="%@P%\..\lib";%@P%\..\..\dm\lib;%@P%\..\..\D\LIB
DFLAGS="-I%@P%\..\src\phobos;%@P%\..\..\D\IMPORT"
LINKCMD=%@P%\..\..\dm\bin\link.exe

> Is there any way of explicitly specifying the path of a module in the
> .D file?

Not to my knowledge.

Regan


More information about the Digitalmars-d-learn mailing list