
Hello everyone, I'm trying to use boost lib asio in a project on eclipse (running on ubuntu 8.10). So far i'm getting this errors when trying to build the project. '/home/matheus/boost_1_39_0' is where i've unpacked boost lib downloaded from sourceforge.net . I've also set this directory to the include path in eclipse. So, any help? Description Resource Path Location Type /home/matheus/boost_1_39_0/boost/asio/detail/posix_signal_blocker.hpp undefined reference to `pthread_sigmask' Proxy_Server line 48 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_signal_blocker.hpp undefined reference to `pthread_sigmask' Proxy_Server line 55 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_thread.hpp undefined reference to `pthread_detach' Proxy_Server line 69 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_thread.hpp undefined reference to `pthread_join' Proxy_Server line 77 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_tss_ptr.hpp undefined reference to `pthread_getspecific' Proxy_Server line 67 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_tss_ptr.hpp undefined reference to `pthread_key_create' Proxy_Server line 47 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_tss_ptr.hpp undefined reference to `pthread_key_delete' Proxy_Server line 61 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/detail/posix_tss_ptr.hpp undefined reference to `pthread_setspecific' Proxy_Server line 73 C/C++ Problem /home/matheus/boost_1_39_0/boost/asio/error.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 218 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' Proxy_Server line 206 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' Proxy_Server line 211 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_generic_category()' Proxy_Server line 212 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 205 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 213 C/C++ Problem /home/matheus/boost_1_39_0/boost/system/error_code.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 312 C/C++ Problem Thanx and best regards, -- Matheus Araújo Aguiar Computer Scientist matheus.pit@gmail.com

Matheus Araújo Aguiar wrote:
Hello everyone,
I'm trying to use boost lib asio in a project on eclipse (running on ubuntu 8.10). So far i'm getting this errors when trying to build the project. '/home/matheus/boost_1_39_0' is where i've unpacked boost lib downloaded from sourceforge.net http://sourceforge.net . I've also set this directory to the include path in eclipse. So, any help?
Description Resource Path Location Type /home/matheus/boost_1_39_0/boost/asio/detail/posix_signal_blocker.hpp undefined reference to `pthread_sigmask' Proxy_Server line 48 C/C++ Problem You're not linking against libpthread. /home/matheus/boost_1_39_0/boost/asio/error.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 218 C/C++ Problem And apparently not against Boost.System either.
You should be able to fix these problems in the project settings. Sebastian

Thanx Sebastian. Indeed, it wasn't linking to boost.System, since i didn't build it. So after building it, i included the path to the directory where i found 'libboost_system-gcc43-mt-1_39.a', and also included the name of the library in the apropriated settings... although that i still getting an error: cannot find -llibboost_system-gcc43-mt-1_39.a And i don't quite get it, since i indicated where to search for the lib, in the project properties -> GCC C++ Linker -> Libraries -> Libraries search path. Can you help getting through this? regards! On Mon, May 18, 2009 at 1:24 PM, Sebastian Redl < sebastian.redl@getdesigned.at> wrote:
Matheus Araújo Aguiar wrote:
Hello everyone,
I'm trying to use boost lib asio in a project on eclipse (running on ubuntu 8.10). So far i'm getting this errors when trying to build the project. '/home/matheus/boost_1_39_0' is where i've unpacked boost lib downloaded from sourceforge.net http://sourceforge.net . I've also set this directory to the include path in eclipse. So, any help?
Description Resource Path Location Type /home/matheus/boost_1_39_0/boost/asio/detail/posix_signal_blocker.hpp undefined reference to `pthread_sigmask' Proxy_Server line 48 C/C++ Problem You're not linking against libpthread. /home/matheus/boost_1_39_0/boost/asio/error.hpp undefined reference to `boost::system::get_system_category()' Proxy_Server line 218 C/C++ Problem And apparently not against Boost.System either.
You should be able to fix these problems in the project settings.
Sebastian _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Matheus Araújo Aguiar Computer Scientist matheus.pit@gmail.com

AMDG Matheus Araújo Aguiar wrote:
Thanx Sebastian. Indeed, it wasn't linking to boost.System, since i didn't build it. So after building it, i included the path to the directory where i found 'libboost_system-gcc43-mt-1_39.a', and also included the name of the library in the apropriated settings...
although that i still getting an error:
cannot find -llibboost_system-gcc43-mt-1_39.a
And i don't quite get it, since i indicated where to search for the lib, in the project properties -> GCC C++ Linker -> Libraries -> Libraries search path. Can you help getting through this?
The option is -lboost_system-gcc43-mt-1_39 the lib and .a are added by the linker. In Christ, Steven Watanabe

Thanx Steven, i've just found the same answer reading the gcc man page!
On Mon, May 18, 2009 at 4:21 PM, Steven Watanabe
AMDG
Matheus Araújo Aguiar wrote:
Thanx Sebastian. Indeed, it wasn't linking to boost.System, since i didn't build it. So after building it, i included the path to the directory where i found 'libboost_system-gcc43-mt-1_39.a', and also included the name of the library in the apropriated settings...
although that i still getting an error:
cannot find -llibboost_system-gcc43-mt-1_39.a
And i don't quite get it, since i indicated where to search for the lib, in the project properties -> GCC C++ Linker -> Libraries -> Libraries search path. Can you help getting through this?
The option is
-lboost_system-gcc43-mt-1_39
the lib and .a are added by the linker.
In Christ, Steven Watanabe
_______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users
-- Matheus Araújo Aguiar Computer Scientist matheus.pit@gmail.com
participants (3)
-
Matheus Araújo Aguiar
-
Sebastian Redl
-
Steven Watanabe