(no subject)
new to d
no at mail.com
Sun Jun 6 06:00:25 PDT 2010
Robert Clipsham Wrote:
> On 06/06/10 13:40, new to d wrote:
> > After reading on this newsgroup about the use of D with cgi i've
> > tried it on my host. Even a simple hello world program gives me
> > internal server error while equivalent c program compiled with gcc
> > works fine. Does any one here have any idea what the problem could
> > be?
>
> Could you show us your hello world code and tell us how you're compiling
> etc? Without more details it's hard to say what's going wrong.
>
> Robert
It's a typical hello world program:
import std.stdio;
void main(string[] args)
{
writeln("Hello world!");
}
I also tried using printf instead of writeln. I'm compiling it with dmd test.d. I'm using dmd v2.046. I'm compiling the c program with gcc -otest2 test2.c.
More information about the Digitalmars-d-learn
mailing list