/tmp/ccOpvE9A.o: In function `__static_initialization_and_destruction_0(int, int)': asio3.cpp:(.text+0x126): undefined reference to `boost::system::get_system_category()' asio3.cpp:(.text+0x130): undefined reference to `boost::system::get_generic_category()' asio3.cpp:(.text+0x13a): undefined reference to `boost::system::get_generic_category()' asio3.cpp:(.text+0x144): undefined reference to `boost::system::get_generic_category()' asio3.cpp:(.text+0x14e): undefined reference to `boost::system::get_system_category()' /tmp/ccOpvE9A.o: In function `boost::system::error_code::error_code()': asio3.cpp:(.text._ZN5boost6system10error_codeC1Ev[boost::system::error_code::error_code()]+0x10): undefined reference to `boost::system::get_system_category()' /tmp/ccOpvE9A.o: In function `boost::asio::error::get_system_category()': asio3.cpp:(.text._ZN5boost4asio5error19get_system_categoryEv[boost::asio::error::get_system_category()]+0x7): undefined reference to `boost::system::get_system_category()' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_thread::~posix_thread()': asio3.cpp:(.text._ZN5boost4asio6detail12posix_threadD1Ev[boost::asio::detail::posix_thread::~posix_thread()]+0x1d): undefined reference to `pthread_detach' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_thread::join()': asio3.cpp:(.text._ZN5boost4asio6detail12posix_thread4joinEv[boost::asio::detail::posix_thread::join()]+0x25): undefined reference to `pthread_join' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_signal_blocker::posix_signal_blocker()': asio3.cpp:(.text._ZN5boost4asio6detail20posix_signal_blockerC1Ev[boost::asio::detail::posix_signal_blocker::posix_signal_blocker()]+0x44): undefined reference to `pthread_sigmask' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_signal_blocker::~posix_signal_blocker()': asio3.cpp:(.text._ZN5boost4asio6detail20posix_signal_blockerD1Ev[boost::asio::detail::posix_signal_blocker::~posix_signal_blocker()]+0x2a): undefined reference to `pthread_sigmask' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_tss_ptr > >::context>::operator boost::asio::detail::call_stack > >::context*() const': asio3.cpp:(.text._ZNK5boost4asio6detail13posix_tss_ptrINS1_10call_stackINS1_15task_io_serviceINS1_13epoll_reactorILb0EEEEEE7contextEEcvPS9_Ev[boost::asio::detail::posix_tss_ptr > >::context>::operator boost::asio::detail::call_stack > >::context*() const]+0xf): undefined reference to `pthread_getspecific' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_tss_ptr > >::context>::operator=(boost::asio::detail::call_stack > >::context*)': asio3.cpp:(.text._ZN5boost4asio6detail13posix_tss_ptrINS1_10call_stackINS1_15task_io_serviceINS1_13epoll_reactorILb0EEEEEE7contextEEaSEPS9_[boost::asio::detail::posix_tss_ptr > >::context>::operator=(boost::asio::detail::call_stack > >::context*)]+0x16): undefined reference to `pthread_setspecific' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_tss_ptr > >::context>::~posix_tss_ptr()': asio3.cpp:(.text._ZN5boost4asio6detail13posix_tss_ptrINS1_10call_stackINS1_15task_io_serviceINS1_13epoll_reactorILb0EEEEEE7contextEED2Ev[boost::asio::detail::posix_tss_ptr > >::context>::~posix_tss_ptr()]+0xf): undefined reference to `pthread_key_delete' /tmp/ccOpvE9A.o: In function `boost::asio::detail::posix_tss_ptr > >::context>::posix_tss_ptr()': asio3.cpp:(.text._ZN5boost4asio6detail13posix_tss_ptrINS1_10call_stackINS1_15task_io_serviceINS1_13epoll_reactorILb0EEEEEE7contextEEC2Ev[boost::asio::detail::posix_tss_ptr > >::context>::posix_tss_ptr()]+0x22): undefined reference to `pthread_key_create' collect2: ld returned 1 exit status