Re: [Cgi-devel] congratulations - couple of general questions
Status: Beta
Brought to you by:
drrngrvy
From: Darren G. <lis...@gm...> - 2010-06-17 13:43:57
|
On 17 June 2010 14:18, <jc...@ol...> wrote: > Darren, > > Thanks for all the answers. > > >> My boost installation is at /usr/local/include/ and I downloaded cgi C++ > >> at /websites/libraries. Is there a difference between: > >> #include <boost/cgi/fcgi.hpp> > >> #include "/websites/libraries/boost/cgi-0.7.1/boost/cgi/fcgi.hpp" > > > you should prefer the first option. Configure your PATH or > > compiler to search for the correct version of the CGI library and use > > <boost/cgi/fcgi.hpp> > > (1) What do I risk if I go with the first second option? > Could you clarify? ;) > (2) The "installation" section of the doc would benefit from adding a few > lines at the beginning explaining that once the standard boost is compiled > and installed (by default in /usr/local for many linux distro I guess), > then it is only a question of dropping off cgi into > /usr/local/include/boost. As it is now it is unnecessary daunting. > You should generally only have to add "/path/to/cgi_root" to your system PATH. Adding the includes to /usr/include/boost is not required. I'll add something to the docs around this - the idea is getting started takes 5 minutes (+ compile times for Boost) so comments here are very useful. (3) Does the library require the fastcgi toolkit available at fastcgi.com. > Does it contain its own implementation of the FastCGI protocol? > You don't need the FastCGI toolkit - the library fully implements FastCGI using Boost.Asio. Cheers, Darren |