
Hi Chris, 2008/5/13 Chris Weed <chrisweed@gmail.com>:
Thanks, After playing with it a little bit, it seems this won't work for me out of the box since I am using FastCGI. FastCGI seems to store the environment variable internally and also manage the i/o, so that getenv and std::cin won't work. You may want to consider supporting FastCGI, since it is important for CGI programs that maintain state between calls, such as database connections. Chris
There is work being done on a FastCGI/CGI library too ( http://cgi.sf.net ). I'm able to pick up its development again in a couple of weeks but for now FastCGI support is included only for linux/apache. If you're looking for production code *right now* then you might want to look at libfastcgi ( http://cryp.to/libfastcgi/ ) or cgicc ( http://www.gnu.org/software/cgicc/ ). Regards, Darren