Derelict+Tango

Moritz Warning moritzwarning at web.de
Sun Sep 6 11:54:06 PDT 2009


On Sun, 06 Sep 2009 13:30:08 -0400, Kamil Dabrowski wrote:

> Well, I'm trying to compile Derelict with Tango and I see the following
> output from dmd:
[..]
>I have also read that Tango environment can be compiled only using
>Rebuild. So I do:
> rebuild buildme.d

I had a quick look.
buildme.d isn't quite up-to-date.

You need to apply some changes:

Line 44, from
import tango.io.File;
to
import tango.io.device.File;

line 258, from
scope f = new File(name);
return cast(char[])f.read();
to
return cast(char[]) File.get(name);

Then you can compile it with:
dmd buildme.d

Line 474, from:
scope f = new File(name);
f.write(cast(void[])contents);
to:
File.set(name, contents);

Now you can do:
dmd buildme.d

No rebuild rebuild required for this step.



More information about the Digitalmars-d mailing list