Cant get hello.d to build:

Tiberiu Gal galtiberiu.backspace at gmail.com
Sat Mar 3 05:24:39 PST 2007


do you have a main function in your hello.d ?

void main()
{
	printf("hello world");
}

... because you need one :)

On Sat, 03 Mar 2007 14:42:49 +0200, Andy Little  
<andy at servocomm.freeserve.co.uk> 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
>
>
> Put hello.d in
>
> D:/projects/dmd/hello.d
>
> from D:/projects/dmd
>
> create batch file setting up PatH:
>
> "
> set  
> PATH=C:/digital_mars/dmd/dmd/bin;c:/digital_mars/dmd/dm/bin;c:/digital_mars/dmc/dm/bin
> "
>
> from D:/projects/dmd, (After running path setup batch file) On running  
> command
>
> 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
>
> D:\Projects\dmd>
>
>  (Object file hello.obj Is created ) in D:/projects/dmd/
>
> linker is found :
>
> D:\Projects\dmd>link
> OPTLINK (R) for Win32  Release 7.50B1
> Copyright (C) Digital Mars 1989 - 2001  All Rights Reserved
>
> OPTLINK : Warning 23: No Stack
> OPTLINK : Warning 134: No Start Address
>
> What's the problem?
> regards
> Andy Little



-- 
Tiberiu Gal


More information about the Digitalmars-d-learn mailing list