Boost logo

Boost Users :

Subject: [Boost-users] error in compilation
From: pedro chaparro (pdro07_at_[hidden])
Date: 2010-04-20 09:41:25


Hi everyone, i'm traying compile the example
http://www.boost.org/doc/libs/1_42_0/doc/html/boost_asio/tutorial/tutdaytime2.html,
but i getting this error, what i missing?? Thanks!!

pp_at_hobbes:/home/pdro7/ns-Sockets# c++ -I ../boost_1_40_0 myserver.cpp -o
myserver /usr/include/libboost_system.a /usr/include/libboost_thread.a
/usr/include/libboost_date_time.a /usr/include/libboost_regex.a
/usr/include/libboost_serialization.a -lpthread
/usr/include/libboost_system.a(error_code.o): In function
`boost::system::get_generic_category()':
error_code.cpp:(.text+0x90): undefined reference to `__cxa_guard_acquire'
error_code.cpp:(.text+0xaa): undefined reference to `__cxa_guard_release'
/usr/include/libboost_system.a(error_code.o): In function
`boost::system::get_system_category()':
error_code.cpp:(.text+0x100): undefined reference to `__cxa_guard_acquire'
error_code.cpp:(.text+0x11a): undefined reference to `__cxa_guard_release'
/usr/include/libboost_system.a(error_code.o): In function `(anonymous
namespace)::generic_error_category::message(int) const':
error_code.cpp:(.text+0x176): undefined reference to `__cxa_guard_acquire'
error_code.cpp:(.text+0x1eb): undefined reference to `__cxa_guard_release'
error_code.cpp:(.text+0x231): undefined reference to `__cxa_guard_abort'
/usr/include/libboost_system.a(error_code.o): In function
`boost::system::errc::make_error_condition(boost::system::errc::errc_t)':
error_code.cpp:(.text._ZN5boost6system4errc20make_error_conditionENS1_6errc_tE[boost::system::errc::make_error_condition(boost::system::errc::errc_t)]+0x38):
undefined reference to `__cxa_guard_acquire'
error_code.cpp:(.text._ZN5boost6system4errc20make_error_conditionENS1_6errc_tE[boost::system::errc::make_error_condition(boost::system::errc::errc_t)]+0x52):
undefined reference to `__cxa_guard_release'
collect2: ld returned 1 exit status

-- 
Ing Pedro Alonso Chaparro Valero
Ciudad Politecnica de la Innovación
iTEAM - Mobile Communications Group
Polytechnic University of Valencia
C\ Camino de Vera S/N, Edificio 8G
46022 Valencia, Spain


Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net