From: Damon Hogan Newsgroups: comp.os.msdos.djgpp Subject: DJGPP & CGI Date: Tue, 21 Mar 2000 12:03:43 -0700 Organization: XMission http://www.xmission.com/ Lines: 99 Message-ID: <38D7C78E.2708CFD1@pgmincorporated.com> NNTP-Posting-Host: mail.pgmincorporated.com Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------00DCC5D8FD665AD338574553" X-Trace: news.xmission.com 953665595 18019 166.70.119.101 (21 Mar 2000 19:06:35 GMT) X-Complaints-To: abuse AT xmission DOT com NNTP-Posting-Date: 21 Mar 2000 19:06:35 GMT Cc: Robin Johnson X-Mailer: Mozilla 4.6 [en] (Win98; I) X-Accept-Language: en To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com This is a multi-part message in MIME format. --------------00DCC5D8FD665AD338574553 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Ok first of all I realized that I was replying to the wrong message. I actually was just figuring out how to get inline assembly to work. Secondly I cannot reply to the news server original message because the original message is deleted due to my provider news server crash. However here is the basics. Download the entire ming32 version (win32) version of GCC. Use that to compile the test.c cgi program attached. So GCC Mingw32 (Win32) CGI works fine. I still cannot get DJGPP to work with CGI I presume because it is protected mode and apache is not or something like that. So in short you can use djgpp for all your development but just switch to ming32 to make a final compile on your CGI's. Damon Robin Johnson wrote: > Yes, please! I would love to know how to get it to work right! > > Damon Hogan wrote: > > > > What do you know, all FAQ's are not the same :) Thanks for your > help. > > > > It is the same problem. The FAQ just says get newer sources. But I > > > actually know > > how to fix the code now. If anyone needs help with this I will > explain. > > > > -- > > Damon Hogan > > Sr Programmer/Analyst > > PGM, Inc. > > damonh AT pgmincorporated DOT com > > http://www.pgmincorporated.com > > http://www.pgmincorporated.com/site-imgs/dh.gif > > Voice (801) 434-4054 /Voice Mail > > Fax (801) 434-7304 > > -- > Robin Hugh Johnson > "Robbat2" > QTOD: "I used to be an idealist, but I got mugged by reality." > E-Mail : robbat2 AT t-p-l DOT com > ICQ# : 30269588 or 41961639 > Home Page : http://tesla.t-p-l.com > Time Zone : Pacific Daylight (GMT - 8) -- Damon Hogan Sr Programmer/Analyst PGM, Inc. damonh AT pgmincorporated DOT com http://www.pgmincorporated.com http://www.pgmincorporated.com/site-imgs/dh.gif Voice (801) 434-4054 /Voice Mail Fax (801) 434-7304 --------------00DCC5D8FD665AD338574553 Content-Type: text/plain; charset=us-ascii; name="test.c" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="test.c" #include #include int main(void) { char hello[1000]; printf("Content-type: text/html\n\n"); printf("\n\nTesting!\n\n"); scanf("%s",hello); printf("%s\n",hello); printf("%s\n",getenv("QUERY_STRING")); } --------------00DCC5D8FD665AD338574553--