HelloWordl in Webserver

Timon Gehr timon.gehr at gmx.ch
Tue Apr 3 04:39:24 PDT 2012


On 04/03/2012 10:45 AM, Xan wrote:
> On Tuesday, 3 April 2012 at 08:42:01 UTC, Xan wrote:
>> I receive errors:
>>
>> xan at gerret:~/proves/dlang-proves$ ls
>> cgi.d functions.d httpd.d netman.d server.d
>> xan at gerret:~/proves/dlang-proves$ gdmd-4.6 server.d cgi.d netman.d
>> httpd.d
>> httpd.d:5: Error: module netman is in file 'arsd/netman.d' which
>> cannot be read
>> import path[0] = /usr/include/d2/4.6/i686-linux-gnu
>> import path[1] = /usr/include/d2/4.6
>>
>>
>> What fails?
>>
>> I use gdmd instead of dmd
>>
>>
>
> It works when I change arsd.<name> to <name> in import.But I receive
> several warnings:
>
> $ gdmd-4.6 server.d cgi.d netman.d httpd.d
> Notice: As of Phobos 2.055, std.date and std.dateparse have been
> deprecated. They will be removed in February 2012. Please use
> std.datetime instead.
> netman.d:428: Error: function std.date.getUTCtime is deprecated
>
>
> I suspect your code is too elder.
>
>
> Thanks,

You can just comment out the code there (afaik it is only a custom 
formatting routine), or compile with the -d flag.


More information about the Digitalmars-d-learn mailing list