Mail Archives: djgpp/1999/11/18/12:03:31
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
- Raw text -