A question about boost::asio (using boost 1.36 minGW eclipse CDT windows
Hello,
I have compilation problem when trying to just #include
These functions are Microsoft WinSock library calls. You need to link with that library. The exact name probably changes between versions, but it may be something like ws2_32 (check your compiler to see if it's an easy option to set). Regards, Jeff gali barabash wrote:
/src/timer.o: In function `ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_6system12system_errorEEEE7add_refEv':
C:/Dev/MessageThreads/Debug/../src/timer.cpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initD1Ev[boost::asio::detail::winsock_init<2, 0>::do_init::~do_init()]+0x7): undefined reference to `WSACleanup@0'
C:/Dev/MessageThreads/Debug/../src/timer.cpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initC1Ev[boost::asio::detail::winsock_init<2, 0>::do_init::do_init()]+0x1f): undefined reference to `WSAStartup@8'
Thanks Jeff!
that really helped me!
2008/10/14 Jeff Gray
These functions are Microsoft WinSock library calls. You need to link with that library. The exact name probably changes between versions, but it may be something like ws2_32 (check your compiler to see if it's an easy option to set).
Regards, Jeff
gali barabash wrote:
/src/timer.o: In function
`ZNK5boost16exception_detail15exception_cloneINS0_19error_info_injectorINS_6system12system_errorEEEE7add_refEv':
C:/Dev/MessageThreads/Debug/../src/timer.cpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initD1Ev[boost::asio::detail::winsock_init<2,
0>::do_init::~do_init()]+0x7): undefined reference to `WSACleanup@0'
C:/Dev/MessageThreads/Debug/../src/timer.cpp:(.text$_ZN5boost4asio6detail12winsock_initILi2ELi0EE7do_initC1Ev[boost::asio::detail::winsock_init<2,
0>::do_init::do_init()]+0x1f): undefined reference to `WSAStartup@8'
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
participants (2)
-
gali barabash
-
Jeff Gray