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).
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_ops.ipp(1953): warning C4996: 'WSAAddressToStringA': Use WSAAddressToStringW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(3556): note: see declaration of 'WSAAddressToStringA'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_ops.ipp(2159): warning C4996: 'WSAStringToAddressA': Use WSAStringToAddressW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(3623): note: see declaration of 'WSAStringToAddressA'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_ops.ipp(2295): warning C4996: 'gethostbyaddr': Use getnameinfo() or GetNameInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2216): note: see declaration of 'gethostbyaddr'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_ops.ipp(2344): warning C4996: 'gethostbyname': Use getaddrinfo() or GetAddrInfoW() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(2238): note: see declaration of 'gethostbyname'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_select_interrupter.ipp(62): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1850): note: see declaration of 'inet_addr'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\detail\impl\socket_select_interrupter.ipp(75): warning C4996: 'inet_addr': Use inet_pton() or InetPton() instead or define _WINSOCK_DEPRECATED_NO_WARNINGS to disable deprecated API warnings
1> c:\program files (x86)\windows kits\8.1\include\um\winsock2.h(1850): note: see declaration of 'inet_addr'
1>d:\users\cpisz.christopherpisz\documents\visual studio 2015\projects\consoleapplication1\consoleapplication1\source2.cpp(27): warning C4996: 'ctime': This function or variable may be unsafe. Consider using ctime_s instead. To disable deprecation, use _CRT_SECURE_NO_WARNINGS. See online help for details.
1> c:\program files (x86)\windows kits\10\include\10.0.10240.0\ucrt\time.h(475): note: see declaration of 'ctime'
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\basic_socket_acceptor.hpp(1015): error C2338: AcceptHandler type requirements not met
1> d:\users\cpisz.christopherpisz\documents\visual studio 2015\projects\consoleapplication1\consoleapplication1\source2.cpp(91): note: see reference to function template instantiation 'boost::asio::async_result<Handler>::type boost::asio::basic_socket_acceptor<boost::asio::ip::tcp,boost::asio::socket_acceptor_service<Protocol>>::async_accept<Protocol,StreamSocketService,std::function<void (tcp_connection::pointer,const boost::system::error_code &)>&>(boost::asio::basic_socket<Protocol,StreamSocketService> &,AcceptHandler,void *)' being compiled
1> with
1> [
1> Handler=std::function<void (tcp_connection::pointer,const boost::system::error_code &)>,
1> Protocol=boost::asio::ip::tcp,
1> StreamSocketService=boost::asio::stream_socket_service<boost::asio::ip::tcp>,
1> AcceptHandler=std::function<void (tcp_connection::pointer,const boost::system::error_code &)> &
1> ]
1> d:\users\cpisz.christopherpisz\documents\visual studio 2015\projects\consoleapplication1\consoleapplication1\source2.cpp(91): note: see reference to function template instantiation 'boost::asio::async_result<Handler>::type boost::asio::basic_socket_acceptor<boost::asio::ip::tcp,boost::asio::socket_acceptor_service<Protocol>>::async_accept<Protocol,StreamSocketService,std::function<void (tcp_connection::pointer,const boost::system::error_code &)>&>(boost::asio::basic_socket<Protocol,StreamSocketService> &,AcceptHandler,void *)' being compiled
1> with
1> [
1> Handler=std::function<void (tcp_connection::pointer,const boost::system::error_code &)>,
1> Protocol=boost::asio::ip::tcp,
1> StreamSocketService=boost::asio::stream_socket_service<boost::asio::ip::tcp>,
1> AcceptHandler=std::function<void (tcp_connection::pointer,const boost::system::error_code &)> &
1> ]
1>d:\programing projects\cplusplus\boost_1_55_0\boost\asio\basic_socket_acceptor.hpp(1015): error C2064: term does not evaluate to a function taking 1 arguments
1> d:\programing projects\cplusplus\boost_1_55_0\boost\asio\basic_socket_acceptor.hpp(1015): note: class does not define an 'operator()' or a user defined conversion operator to a pointer-to-function or reference-to-function that takes appropriate number of arguments
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========