I have just installed boost and boost.cgi (fastcgi from http://cgi.sourceforge.net/). Boost compile without errors using a "header-only library" and "Boost Library Binary" but when I compile this dummy program to test boost.cgi:
c++ test.cpp -o test
In file included from /usr/local/include/boost/mpl/int.hpp:17,
from /usr/local/include/boost/cgi/fcgi/specification.hpp:336,
from /usr/local/include/boost/cgi/common/protocol_traits.hpp:20,
from /usr/local/include/boost/cgi/common/basic_protocol_service.hpp:20,
from /usr/local/include/boost/cgi/cgi/service.hpp:26,
from /usr/local/include/boost/cgi/cgi/request.hpp:15,
from /usr/local/include/boost/cgi/cgi.hpp:15,
from test.cpp:10:
/usr/local/include/boost/mpl/int_fwd.hpp:25: error: ‘::mpl_’ has not been declared
In file included from /usr/local/include/boost/mpl/aux_/integral_wrapper.hpp:16,
from /usr/local/include/boost/mpl/int.hpp:20,
from /usr/local/include/boost/cgi/fcgi/specification.hpp:336,
from /usr/local/include/boost/cgi/common/protocol_traits.hpp:20,
from /usr/local/include/boost/cgi/common/basic_protocol_service.hpp:20,
from /usr/local/include/boost/cgi/cgi/service.hpp:26,
from /usr/local/include/boost/cgi/cgi/request.hpp:15,
from /usr/local/include/boost/cgi/cgi.hpp:15,
from test.cpp:10:
/usr/local/include/boost/mpl/integral_c_tag.hpp:24: error: ‘::mpl_’ has not been declared
. . . .
. . . .
I tried installing boost from ubuntu repository (1_40_0) and from boost site (1_46_0) but I got the same errors.
I think it's a problem of namespaces but I don't know what to do.
I've just installed the last version from boost site. When it compile I have a lot of warning and I don't know whether it installs all libs . Now I have installed it as root (previously as user) in /opt/boost_1_46_0 and the libraries are in /opt/boost_1_46_0/stage/lib:
c++ -I /opt/boost_1_46_0 test.cpp -o test
In file included from /opt/boost_1_46_0/boost/mpl/int.hpp:17,
from /opt/boost_1_46_0/boost/cgi/fcgi/specification.hpp:336,
from /opt/boost_1_46_0/boost/cgi/common/protocol_traits.hpp:20,
from /opt/boost_1_46_0/boost/cgi/common/basic_protocol_service.hpp:20,
from /opt/boost_1_46_0/boost/cgi/cgi/service.hpp:26,
from /opt/boost_1_46_0/boost/cgi/cgi/request.hpp:15,
from /opt/boost_1_46_0/boost/cgi/cgi.hpp:15,
from test.cpp:10:
/opt/boost_1_46_0/boost/mpl/int_fwd.hpp:25: error: ‘::mpl_’ has not been declared
In file included from /opt/boost_1_46_0/boost/mpl/aux_/integral_wrapper.hpp:16,
from /opt/boost_1_46_0/boost/mpl/int.hpp:20,
from /opt/boost_1_46_0/boost/cgi/fcgi/specification.hpp:336,
from /opt/boost_1_46_0/boost/cgi/common/protocol_traits.hpp:20,
from /opt/boost_1_46_0/boost/cgi/common/basic_protocol_service.hpp:20,
from /opt/boost_1_46_0/boost/cgi/cgi/service.hpp:26,
from /opt/boost_1_46_0/boost/cgi/cgi/request.hpp:15,
from /opt/boost_1_46_0/boost/cgi/cgi.hpp:15,
from test.cpp:10:
/opt/boost_1_46_0/boost/mpl/integral_c_tag.hpp:24: error: ‘::mpl_’ has not been declared
. . .
. . .
I found this in ReadMe file:
Currently tested on
Ubuntu 8.04 desktop 32bit
Ubuntu 9.10 desktop 32bit
Ubuntu 8.04 server 64bit
MSVC 2008 Windows XP
MSVC 2008 Windows 7
If you have the other version of Ubuntu / or the 64 bit's earlier/later than 8.04, you could have this problem.
Yes, perhaps the problem is this, I tested it with ubuntu 10.04 and debian 6 and they both are too recent.