[Cgi-devel] Build with gcc 4.2.3 and boost 1.35
Status: Beta
Brought to you by:
drrngrvy
From: Leutloff, C. <cle...@xo...> - 2008-07-15 18:27:51
|
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi, thanks a lot designing and implementing the CGI lib! When compiling the latest source I've gotten lots of this type of error messages '_Stdio' is not a member of 'cgi::common::tags' boost/cgi/connections stdio.hpp line 27 This was fixed by including this header file early: #include "boost/cgi/connections/stdio.hpp" The boost unique_lock has been removed in version 1.35. Both of the issues are fixed with the attached patch. Can you please update the hello_world example to bring the document and source version in line!? I would prefer to use explicit namespace (or better with an alias) usage, e.g.: cgi::cgi_request req; // Our request (POST data won't be parsed yet). cgi::common::response resp; // A response object to make our lives easier. resp << cgi::common::content_type("text/plain") << "Hello, world."; resp.send(req.client()); In case of trouble you will be able to look in a narrower scope. As a side effect it is possible to get a sense of the used structure of the library. Is the patch appropriate? My build environment: WinXP, Eclipse, gcc 4.2.3 for QNX 6.3, Executables are running under QNX 6.3. Bye Christian - - -- Dr.-Ing. Christian Leutloff XOX Industrie IT GmbH WWW: http://www.xoxind.de -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (MingW32) iQEVAwUBSHzsIFWxaANqIdXyAQIzHAf9H/atQ0/WM4edL5YR9oQDQmJxgurJLrjG JemzRm5JUzB/aumBxxSNB8Ronx1slkCtMYwFUhs7hWLFOBcEPIp7nYAPvfY7dhK9 Re8yeIWxivN4WISGuG4sop0MJK/ikKn3Dg3lbymjrcONDDi2QHyDYijeLQXtB2YB VH6JUpPi2hS+4dGN9GGA6QqEgn01ZdW1ff4PQkjnG3a2vEFXCB55+k8K/Y+1UnF9 ax17qv3nvS22mNV/mZcf7UwAa+YNZMxm4YeVE2a5IkYX5aPxiCvc0w/KSlo/bruP nuuY2Yf8nmqG3po58ntEA4ws9vuKaf+gn1c8B48GywmxO9i9HIfCdQ== =GB5e -----END PGP SIGNATURE----- |