cvs.gedasymbols.org/archives/browse.cgi   search  
Mail Archives: djgpp/1999/11/25/12:17:21

Date: Thu, 25 Nov 1999 17:51:11 +0200 (IST)
From: Eli Zaretskii <eliz AT is DOT elta DOT co DOT il>
X-Sender: eliz AT is
To: azuaje <ludoviko AT cantv DOT net>
cc: djgpp <djgpp AT delorie DOT com>
Subject: Re: is there any cgi library for djgpp?
In-Reply-To: <383B358B.B03C5D37@cantv.net>
Message-ID: <Pine.SUN.3.91.991125174704.14597A-100000@is>
MIME-Version: 1.0
Reply-To: djgpp AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

On Tue, 23 Nov 1999, azuaje wrote:

> I need to write cgi programs in C or C++ (preferably in C). I wonder if there is any cgi
> library for djgpp.

Compiling CGI programs with DJGPP is not a good idea at all: most 
probably the resultant executable won't work.  The problem is that DJGPP 
produces DOS programs, which are run by Windows in a separate Virtual 
Machine.  Since the HTTP server, like any Windows program, runs in the 
System VM it needs to employ special tricks to redirect standard input
and output from a DJGPP program.  Alas, most Windows servers don't bother 
to employ these tricks.

Compile the program with one of the compilers that produce Win32 
applications.  Section 3.6 of the DJGPP FAQ lists the available free 
compilers that will fit the bill.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019