Hi, I am running a simple socket example of boost.asio library. i am getting the following error. can any one help me in this regard.
here is the example code: http://www.boost.org/doc/libs/1_38_0/doc/html/boost_asio/tutorial/tutdaytime1/src.html I am buinding it in eclipse and mingw. Description Resource Path Location Type C:/boost_1_38_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' sock1 206 C/C++ Problem C:/boost_1_38_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' sock1 211 C/C++ Problem C:/boost_1_38_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' sock1 212 C/C++ Problem C:/boost_1_38_0/boost/system/error_code.hpp undefined reference to `boost::system::get_system_category()' sock1 205 C/C++ Problem C:/boost_1_38_0/boost/system/error_code.hpp undefined reference to `boost::system::get_system_category()' sock1 213 C/C++ Problem undefined reference to `wsagetlaster...@0' sock1.cpp sock1/src 29 C/C++ Problem undefined reference to `wsagetlaster...@0' sock1.cpp sock1/src 30 C/C++ Problem undefined reference to `wsar...@28' sock1.cpp sock1/src 27 C/C++ Problem C:/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning Assuming _WIN32_WINNT=0x0501 (i.e. Windows XP target). sock1 39 C/C++ Problem C:/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning For example, add -D_WIN32_WINNT=0x0501 to the compiler command line. sock1 38 C/C++ Problem C:/boost_1_38_0/boost/asio/detail/socket_types.hpp #warning Please define _WIN32_WINNT or _WIN32_WINDOWS appropriately. sock1 37 C/C++ Problem C:/boost_1_38_0/boost/date_time/filetime_functions.hpp left shift count >= width of type sock1 101 C/C++ Problem -- View this message in context: http://www.nabble.com/Can-any-one-help-me-in-sockets-prog-using-boost.asio-tp23487826p23487826.html Sent from the C-prog mailing list archive at Nabble.com.
