Click to See Complete Forum and Search --> : CGI in C/C++
squalito
10-24-2004, 11:55 AM
Hello,
What are the packages to install on a linux server to be abble to run script writting in CGI / C or C++ ?
Thanks
Jeff Mott
10-24-2004, 12:02 PM
C/C++ compiled CGI programs do not need any special software. The only software Perl really needs is the interpreter, and C/C++ obviously don't need anything like that.
But what you will almost certainly need to use when writing CGI programs in C is cgic (http://www.boutell.com/cgic/): an ANSI C library for CGI programming.
squalito
10-24-2004, 12:55 PM
ok thanks
So I already have perl installed, and already wrote some CGI scripts in perl.
I was not sure I didn't have to install something for writing CGI in C/C++
Ok so I have to install CGIC
Thanks a ton
squalito
iluxa
11-22-2006, 06:08 PM
Alternatively you can use something like CPPSERV (http://www.total-knowledge.com/progs/cppserv). It's a C++ Servlet Container (also includes C++ Server Pages parser). It combines efficiency of C++ with elegance and flexibility of servlets.
drhowarddrfine
11-22-2006, 11:37 PM
No! You do NOT need cgic. I have done CGI programming without it just fine. Some think it's helpful, I do not, but I also prefer assembly, so there.
iluxa
11-25-2006, 02:20 AM
It is true, you do not _have_ to have a library (cgic, or any other) to write CGI in C/C++, but if you are doing anything but simplest things, it doesn't make sense not to. I.E. what is the point of reimplementing query string parsing algorihhm - you are not going to make it any better then existing implementations, only potentially worse by leaving some bugs in. Same goes for file uploads, etc.