Cant get hello.d to build:

Frits van Bommel fvbommel at REMwOVExCAPSs.nl
Sat Mar 3 05:40:54 PST 2007


Andy Little wrote:
> Cant get hello.d to build:
> 
> Directory setup
> 
> dmd.zip --> C:/digital_mars/dmd
> 
> e.g dmd/dmd/bin --> C:/digital_mars/dmd/dmd/bin
> 
> dmc.zip --> C:/digital_mars/dmc
> 
> e.g dmc/dmc/bin --> C:/digital_mars/dmc/dm.bin
[snip]
> D:\Projects\dmd>dmd hello.d
> C:\digital_mars\dmd\dmd\bin\..\..\dm\bin\link.exe hello,,,user32+kernel32/noi;
> Can't run 'C:\digital_mars\dmd\dmd\bin\..\..\dm\bin\link.exe', check PATH

Try unzipping both zip files directly to c:/digital_mars. IIRC both have 
a directory 'dm', but don't contain any conflicting files.

Alternatively, edit your PATH environment variable to contain 
"c:\digital_mars\dmc\dmd\bin", or edit your sc.ini file to contain the 
lines:
---
[Environment]
LINKCMD="c:\digital_mars\dmc\dm\bin\link"
---

(dmd looks for sc.ini in the current working directory, the directory 
specified by the HOME environment variable, and the directory dmd.exe is 
in -- in that order)


More information about the Digitalmars-d-learn mailing list