Re: howto use fcgi-test.cpp?
"U.Mutlu" <[email protected]> Sun, 12 Feb 2012 22:26:03 +0100
| Newsgroups | gmane.comp.gcc.cgicc.general |
|---|---|
| Organization | mutluit.com |
| Message-ID | <[email protected]> |
Igor Franchuk wrote, On 02/12/12 17:08: > UM> I found fcgi-test.cpp in the archive of cgicc. > UM> Building fcgi-test.cpp brings linker errors, it is also > UM> commented out in the Makefile of cgicc, I guess because of the link errors. > > If you're still interested you could copy paste the errors. > Many years ago I had no problems linking fcgi-test.cpp Thx for the offer. In the mean time I've found the right compile-link commands and libs: Under Linux (here Debian) one should install the following packages: libcgicc-dev libcgicc-doc libfcgi-dev # cd /usr/share/doc/libcgicc-doc/examples/contrib/ # ls -l -rw-r--r-- 1 root root 1870 Nov 14 2009 FCgiIO.cpp -rw-r--r-- 1 root root 1476 Nov 14 2009 FCgiIO.h.gz -rw-r--r-- 1 root root 377 Nov 14 2009 README -rw-r--r-- 1 root root 2546 Nov 14 2009 fcgi-test.cpp -rw-r--r-- 1 root root 2879 Nov 14 2009 nph-hello.cpp -rw-r--r-- 1 root root 2415 Nov 14 2009 nph-login.cpp.gz Build: g++ -o fcgi-test.cgi fcgi-test.cpp FCgiIO.cpp -lfcgi++ -lfcgi -lcgicc Now it compiles and links fine. But I have not tested it yet as I'm concentrating myself on SCGI. Maybe the above info can be useful for others interested in FastCGI and cgicc.