Re: (no subject)

2010-06-06 Thread Ali Çehreli
Michal Minich wrote: On Sun, 06 Jun 2010 09:00:25 -0400, new to d wrote: import std.stdio; void main(string[] args) { writeln("Hello world!"); } Just a guess, but maybe the difference of your C and D programs is in return value, which can be differently interpreted by CGI host. try

Re: (no subject)

2010-06-06 Thread new to d
new to d Wrote: > Robert Clipsham Wrote: > > > On 06/06/10 14:00, new to d wrote: > > > 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 wi

Re: (no subject)

2010-06-06 Thread new to d
Robert Clipsham Wrote: > On 06/06/10 14:00, new to d wrote: > > 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.0

Re: (no subject)

2010-06-06 Thread Michal Minich
On Sun, 06 Jun 2010 09:00:25 -0400, new to d wrote: > import std.stdio; > > void main(string[] args) > { > writeln("Hello world!"); > } Just a guess, but maybe the difference of your C and D programs is in return value, which can be differently interpreted by CGI host. try returning 1 or

Re: (no subject)

2010-06-06 Thread Robert Clipsham
On 06/06/10 14:00, new to d wrote: 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 test

Re: (no subject)

2010-06-06 Thread new to d
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 h

Re: (no subject)

2010-06-06 Thread Robert Clipsham
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

(no subject)

2010-06-06 Thread new to d
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?