Hi everyone,
I'm hitting the following compilation error using Visual Studio 2010 and Boost
1.45. The example compiles perfectly using v0.7, however.
1>------ Build started: Project: NetlibTest, Configuration: Debug Win32 ------
1> hello_world_server.cpp
1>c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(28):
error C2065: 'or_' : undeclared identifier
1>
c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(37) :
see reference to class template instantiation
'boost::network::http::traits::version<Message>' being compiled
1>c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(29):
error C2275: 'boost::network::is_sync<Message::tag>' : illegal use of this type
as an expression
1>c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(32):
error C2974: 'boost::mpl::if_' : invalid template argument for 'T1', type
expected
1> c:\greenfield\include\boost\mpl\if.hpp(56) : see declaration of
'boost::mpl::if_'
1>c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(35):
error C2977: 'boost::mpl::if_' : too many template arguments
1> c:\greenfield\include\boost\mpl\if.hpp(56) : see declaration of
'boost::mpl::if_'
1>c:\cpp-netlib-0.8\boost\network\protocol\http\message\traits\version.hpp(36):
error C2143: syntax error : missing ',' before '>'
1> Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. For example:
1> - add -D_WIN32_WINNT=0x0501 to the compiler command line; or
1> - add _WIN32_WINNT=0x0501 to your project's Preprocessor Definitions.
1> Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target).
Looks like a using directive got lost on the way somewhere.
Best regards,
Christoffer M.
------------------------------------------------------------------------------
Increase Visibility of Your 3D Game App & Earn a Chance To Win $500!
Tap into the largest installed PC base & get more eyes on your game by
optimizing for Intel(R) Graphics Technology. Get started today with the
Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs.
http://p.sf.net/sfu/intelisp-dev2dev
_______________________________________________
Cpp-netlib-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/cpp-netlib-devel