|
From: Donald C. <do...@xm...> - 2011-03-29 08:28:53
|
Came across cpp-netlib via Pion. Looks promising. However, in trying to get
up and running, I tried compiling the following simple no-brainer code using
VS2010 together with Boost 1.46.1 (I also tested again Boost Subversion
repos only to get the same errors). In both cases, I had copied
cpp-netlib-0.8.1/{boost,lib} into the boost hierarchy.
//#include <boost/network.hpp>
#include <boost/network/include/http/server.hpp>
int main(int argc, char* argv[]) { return 0; }
Compiling this gave the following errors in VS2010:
Error 1 error C2065: 'or_' : undeclared identifier
\projects\boost\boost\network\protocol\http\message\traits\version.hpp 28
Error 2 error C2275: 'boost::network::is_sync<Message::tag>' : illegal
use of this type as an expression
\projects\boost\boost\network\protocol\http\message\traits\version.hpp 29
Error 3 error C2974: 'boost::mpl::if_' : invalid template argument for
'T1', type expected
\projects\boost\boost\network\protocol\http\message\traits\version.hpp 32
Error 4 error C2977: 'boost::mpl::if_' : too many template arguments
\projects\boost\boost\network\protocol\http\message\traits\version.hpp 35
Error 5 error C2143: syntax error : missing ',' before '>'
\projects\boost\boost\network\protocol\http\message\traits\version.hpp 36
For whatever reason, I added the global netlib header to see if that made
any difference. When I uncommented the #include <boost/network.hpp> line I
get different errors:
Error 1 error C2752:
'boost::spirit::traits::is_weak_substitute<T,Expected>' : more than one
partial specialization matches the template argument list
\projects\boost\boost\mpl\aux_\preprocessed\plain\or.hpp 51
Error 2 error C2752:
'boost::spirit::traits::is_weak_substitute<T,Expected>' : more than one
partial specialization matches the template argument list
\projects\boost\boost\mpl\aux_\preprocessed\plain\or.hpp 51
Can someone shed some light on this ?
--
DonC.
|