|
Boost Users : |
From: ope (ope-devel_at_[hidden])
Date: 2007-08-18 11:47:42
Hi,
I try to compile the asio example at
http://asio.sourceforge.net/boost_asio_0_3_7/libs/asio/doc/tutorial/tuttimer2src.html
using boost svn trunk; as well as the the 1.34.1
The error attached occoured. What did I wrong? All headers seems to be
found.
Thanks,
Olaf
$ g++ -I boost-trunk/ t1.cpp
./boost-trunk/libs/system/src/error_code.cpp -o t1
boost-trunk/boost/asio/detail/bind_handler.hpp: In member function »void
boost::asio::detail::binder1<Handler, Arg1>::operator()() [with Handler
= void (*)(const boost::asio::error&), Arg1 = boost::system::error_code]«:
boost-trunk/boost/asio/handler_invoke_hook.hpp:63: instantiated from
»void boost::asio::asio_handler_invoke(Function, ...) [with Function =
boost::asio::detail::binder1<void (*)(const boost::asio::error&),
boost::system::error_code>]«
boost-trunk/boost/asio/detail/handler_invoke_helpers.hpp:39:
instantiated from »void asio_handler_invoke_helpers::invoke(const
Function&, Context*) [with Function = boost::asio::detail::binder1<void
(*)(const boost::asio::error&), boost::system::error_code>, Context =
void (*)(const boost::asio::error&)]«
boost-trunk/boost/asio/detail/bind_handler.hpp:72: instantiated from
»void boost::asio::detail::asio_handler_invoke(const Function&,
boost::asio::detail::binder1<Handler, Arg1>*) [with Function =
boost::asio::detail::binder1<void (*)(const boost::asio::error&),
boost::system::error_code>, Handler = void (*)(const
boost::asio::error&), Arg1 = boost::system::error_code]«
boost-trunk/boost/asio/detail/handler_invoke_helpers.hpp:39:
instantiated from »void asio_handler_invoke_helpers::invoke(const
Function&, Context*) [with Function = boost::asio::detail::binder1<void
(*)(const boost::asio::error&), boost::system::error_code>, Context =
boost::asio::detail::binder1<void (*)(const boost::asio::error&),
boost::system::error_code>]«
boost-trunk/boost/asio/detail/task_io_service.hpp:412: instantiated
from »static void
boost::asio::detail::task_io_service<Task>::handler_wrapper<Handler>::do_call(boost::asio::detail::task_io_service<Task>::handler_base*)
[with Handler = boost::asio::detail::binder1<void (*)(const
boost::asio::error&), boost::system::error_code>, Task =
boost::asio::detail::epoll_reactor<false>]«
boost-trunk/boost/asio/detail/task_io_service.hpp:392: instantiated
from
»boost::asio::detail::task_io_service<Task>::handler_wrapper<Handler>::handler_wrapper(Handler)
[with Handler = boost::asio::detail::binder1<void (*)(const
boost::asio::error&), boost::system::error_code>, Task =
boost::asio::detail::epoll_reactor<false>]«
boost-trunk/boost/asio/detail/handler_alloc_helpers.hpp:138:
instantiated from
»boost::asio::detail::handler_ptr<Alloc_Traits>::handler_ptr(boost::asio::detail::raw_handler_ptr<Alloc_Traits>&,
Arg1&) [with Arg1 = boost::asio::detail::binder1<void (*)(const
boost::asio::error&), boost::system::error_code>, Alloc_Traits =
boost::asio::detail::handler_alloc_traits<boost::asio::detail::binder1<void
(*)(const boost::asio::error&), boost::system::error_code>,
boost::asio::detail::task_io_service<boost::asio::detail::epoll_reactor<false>
>::handler_wrapper<boost::asio::detail::binder1<void (*)(const
boost::asio::error&), boost::system::error_code> > >]«
boost-trunk/boost/asio/detail/task_io_service.hpp:180: instantiated
from »void boost::asio::detail::task_io_service<Task>::post(Handler)
[with Handler = boost::asio::detail::binder1<void (*)(const
boost::asio::error&), boost::system::error_code>, Task =
boost::asio::detail::epoll_reactor<false>]«
boost-trunk/boost/asio/impl/io_service.ipp:125: instantiated from
»void boost::asio::io_service::post(Handler) [with CompletionHandler =
boost::asio::detail::binder1<void (*)(const boost::asio::error&),
boost::system::error_code>]«
boost-trunk/boost/asio/detail/deadline_timer_service.hpp:169:
instantiated from »void
boost::asio::detail::deadline_timer_service<Time_Traits,
Timer_Scheduler>::wait_handler<Handler>::operator()(const
boost::system::error_code&) [with Handler = void (*)(const
boost::asio::error&), Time_Traits =
boost::asio::time_traits<boost::posix_time::ptime>, Timer_Scheduler =
boost::asio::detail::epoll_reactor<false>]«
boost-trunk/boost/asio/detail/timer_queue.hpp:277: instantiated from
»static void
boost::asio::detail::timer_queue<Time_Traits>::timer<Handler>::invoke_handler(boost::asio::detail::timer_queue<Time_Traits>::timer_base*,
const boost::system::error_code&) [with Handler =
boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>,
boost::asio::detail::epoll_reactor<false> >::wait_handler<void (*)(const
boost::asio::error&)>, Time_Traits =
boost::asio::time_traits<boost::posix_time::ptime>]«
boost-trunk/boost/asio/detail/timer_queue.hpp:269: instantiated from
»boost::asio::detail::timer_queue<Time_Traits>::timer<Handler>::timer(const
typename Time_Traits::time_type&, Handler, void*) [with Handler =
boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>,
boost::asio::detail::epoll_reactor<false> >::wait_handler<void (*)(const
boost::asio::error&)>, Time_Traits =
boost::asio::time_traits<boost::posix_time::ptime>]«
boost-trunk/boost/asio/detail/timer_queue.hpp:70: instantiated from
»bool boost::asio::detail::timer_queue<Time_Traits>::enqueue_timer(const
typename Time_Traits::time_type&, Handler, void*) [with Handler =
boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>,
boost::asio::detail::epoll_reactor<false> >::wait_handler<void (*)(const
boost::asio::error&)>, Time_Traits =
boost::asio::time_traits<boost::posix_time::ptime>]«
boost-trunk/boost/asio/detail/epoll_reactor.hpp:325: instantiated from
»void
boost::asio::detail::epoll_reactor<Own_Thread>::schedule_timer(boost::asio::detail::timer_queue<Time_Traits>&,
const typename Time_Traits::time_type&, Handler, void*) [with
Time_Traits = boost::asio::time_traits<boost::posix_time::ptime>,
Handler =
boost::asio::detail::deadline_timer_service<boost::asio::time_traits<boost::posix_time::ptime>,
boost::asio::detail::epoll_reactor<false> >::wait_handler<void (*)(const
boost::asio::error&)>, bool Own_Thread = false]«
boost-trunk/boost/asio/detail/deadline_timer_service.hpp:183:
instantiated from »void
boost::asio::detail::deadline_timer_service<Time_Traits,
Timer_Scheduler>::async_wait(boost::asio::detail::deadline_timer_service<Time_Traits,
Timer_Scheduler>::implementation_type&, Handler) [with Handler = void
(*)(const boost::asio::error&), Time_Traits =
boost::asio::time_traits<boost::posix_time::ptime>, Timer_Scheduler =
boost::asio::detail::epoll_reactor<false>]«
boost-trunk/boost/asio/deadline_timer_service.hpp:153: instantiated
from »void boost::asio::deadline_timer_service<TimeType,
TimeTraits>::async_wait(typename
boost::asio::detail::deadline_timer_service<TimeTraits,
boost::asio::detail::epoll_reactor<false> >::implementation_type&,
WaitHandler) [with WaitHandler = void (*)(const boost::asio::error&),
TimeType = boost::posix_time::ptime, TimeTraits =
boost::asio::time_traits<boost::posix_time::ptime>]«
boost-trunk/boost/asio/basic_deadline_timer.hpp:374: instantiated from
»void boost::asio::basic_deadline_timer<Time, TimeTraits,
TimerService>::async_wait(WaitHandler) [with WaitHandler = void
(*)(const boost::asio::error&), Time = boost::posix_time::ptime,
TimeTraits = boost::asio::time_traits<boost::posix_time::ptime>,
TimerService =
boost::asio::deadline_timer_service<boost::posix_time::ptime,
boost::asio::time_traits<boost::posix_time::ptime> >]«
t1.cpp:15: instantiated from here
boost-trunk/boost/asio/detail/bind_handler.hpp:39: Fehler: ungültige
Initialisierung einer Referenz des Typs »const boost::asio::error&« von
Ausdruck des Typs »boost::system::error_code«
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