I'm trying to build the cpp-netlib on windows using visual studio 2013 (express). I tried to do so from two sources: 1. Downloaded the archive from the site, ran cmake, opened the solution file in VS2013 and then build. 2. Cloned the repo from github, ran cmake, opened the solution file in VS2013 and then build.
In both cases the process stopped due to compilation errors.
When using the source from the site I ran into the problem described here: Compile error with VS2010 and boost 1.56, since it looks like they found a solution and merged it, I decided to use the github repo.
When trying to build the library from the github source the compilation ended with lots of errors (~200) which seem to be complaints regarding c++11, such as:
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted
and
error C3646: 'noexcept' : unknown override specifier
and many more.
Any idea how to solve it and be able to build the library? Thanks!
Edit
Here are the first 10 errors including the source file paths:
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 20 1 network-http-server
error C2610: 'network::http::session &network::http::session::operator =(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 22 1 network-http-server
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 20 1 network-http-server
error C2610: 'network::http::session &network::http::session::operator =(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 22 1 network-http-server
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 20 1 network-http-server
error C2610: 'network::http::session &network::http::session::operator =(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 22 1 network-http-server
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 20 1 cpp-netlib-http-server_simple_sessions_test
error C2610: 'network::http::session &network::http::session::operator =(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 22 1 cpp-netlib-http-server_simple_sessions_test
error C2610: 'network::http::session::session(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 20 1 cpp-netlib-http-server_dynamic_dispatcher_test
error C2610: 'network::http::session &network::http::session::operator =(network::http::session &&)' : is not a special member function which can be defaulted http\src\http\server\session.hpp 22 1 cpp-netlib-http-server_dynamic_dispatcher_test