Message-Id: <199911181611.SAA17590@www.Foo.COM> From: "S. M. Halloran" Organization: User RFC 822- and 1123-compliant To: "The Advisor" , djgpp AT delorie DOT com Date: Thu, 18 Nov 1999 18:16:36 +0200 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Re: CGI Problems In-reply-to: <3833302d_4@news.cadvision.com> X-mailer: Pegasus Mail for Win32 (v3.12) Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On 17 Nov 99, The Advisor was found to have commented thusly: > Hey all, > > I've got a problem with CGI and djgpp. > > I've made the infamous hello.exe to test out as a CGI script on my website. > As I can run any of the other scripts that came packaged with my http > server, I should be able to serve hello.exe right? > > When I try to serve hello.exe from Sambar Server v4.3b, I get an internal > server error, and from MS PWS I just get a timeout, then my computer > crashes. > > Any ideas on why these servers can't handle djgpp-compiled programs? > > Thanks, The problem with Windows is that MS-DOS applications cannot do interprocess communications: stdout (output from your CGI) is never received by the Windows-based server. The standard DJGPP library does not provide the services for your application to communicate with other applications. I do the very same thing you do: develop CGI apps and using the same server (Sambar). Since I code only in C, I have found that LCC-Win32 compiler/library works nicely for me, and so I recommend it presently. There is also the Cygwin system, but you need to use a large DLL with it; also MinGW-32. For more info compilers/libraries you might use, look at the FAQ, Question 3.6. Sambar also supports ISAPI, and so once you have your exe running well, try to make your program a DLL since that will speed processing up and probably lead to less resource use. Mitch Halloran Research (Bio)chemist Duzen Laboratories Group Ankara TURKEY