digitalmars.D.learn - newbie windows setup help

--001485f914a861297504a4448569
Content-Type: text/plain; charset=ISO-8859-1
I am attempting to compile a simple d source file using the
http://learn-programming.za.net/learn_d_programming.html site as a guide to
learning D programming.
dmd2 is installed in D:\D\dmd. When I attempt to compile I get the following
error:
D:\D\programs>dmd first.d
object.d: Error: module object is in file 'object.d' which cannot be read
import path[0] = D:\D\dmd\bin\..\..\src\phobos
import path[1] = D:\D\dmd\bin\..\..\src\druntime\import
contents of sc.ini:
[Version]
version=7.51 Build 020
[Environment]
LIB="% P%\..\lib";\dm\lib
DFLAGS="-I% P%\..\..\src\phobos" "-I% P%\..\..\src\druntime\import"
LINKCMD=% P%\link.exe
I cannot install dmd to the C: drive. What is the significance of the line:
"DFLAGS="-I% P%\..\..\src\phobos"" since there is no "src" folder?
I really like what I have read about D and would like to learn the language.
Thanks for any help.
Bob Smith
--001485f914a861297504a4448569
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<div>I am attempting to compile a simple d source file using the <a href=3D=
"http://learn-programming.za.net/learn_d_programming.html">http://learn-pro=
gramming.za.net/learn_d_programming.html</a> site as a guide to learning D =
programming.</div>
<div>dmd2 is installed in D:\D\dmd. When I attempt to compile I get the fol=
lowing error:</div>
<div>D:\D\programs&gt;dmd first.d<br>object.d: Error: module object is in f=
ile &#39;object.d&#39; which cannot be read<br>import path[0] =3D D:\D\dmd\=
bin\..\..\src\phobos<br>import path[1] =3D D:\D\dmd\bin\..\..\src\druntime\=
import</div>
<div>=A0</div>
<div>contents of sc.ini:</div>
<div>[Version]<br>version=3D7.51 Build 020</div>
<div>[Environment]<br>LIB=3D&quot;<a href=3D"mailto:% P%\..\lib&quot;;\dm\l=
ib">% P%\..\lib&quot;;\dm\lib</a><br>DFLAGS=3D&quot;<a href=3D"mailto:-I% P=
%\..\..\src\phobos">-I% P%\..\..\src\phobos</a>&quot; &quot;<a href=3D"mail=
to:-I% P%\..\..\src\druntime\import">-I% P%\..\..\src\druntime\import</a>&q=
uot;<br>
<a href=3D"mailto:LINKCMD=3D% P%\link.exe">LINKCMD=3D% P%\link.exe</a></div=

<div>I cannot install dmd to the C: drive. What is the significance of the =
line:</div>
<div>&quot;DFLAGS=3D&quot;<a href=3D"mailto:-I% P%\..\..\src\phobos">-I% P%=
\..\..\src\phobos</a>&quot;&quot; since there is no &quot;src&quot; folder?=
</div>
<div>=A0</div>
<div>I really like what I have read about D and would like to learn the lan=
guage.</div>
<div>=A0</div>
<div>Thanks for any help.</div>
<div>=A0</div>
<div>Bob Smith</div>
--001485f914a861297504a4448569--

Installing DMD on Windows is very easy:
1) Download the latest compiler, like dmd 2.053.
2) Unzip it into a short nice path. D:\D\dmd is OK.
3) Add the path to the windows\bin in your system path. This means adding this
at the end your path:
;D:\D\dmd\windows\bin;
Do you know how to add that to the system path?
Then some kind of build helper is useful.
Bye,
bearophile