ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

Boost compilation error

asked 2018-08-20 13:45:22 -0500

Old Meme gravatar image

updated 2018-08-20 14:41:38 -0500

jayess gravatar image

Hi guys,

I've been having issues with compilation errors where I've been getting this wall of errors:

/usr/include/boost/bind/bind.hpp: In instantiation of ‘void boost::_bi::list2<A1, A2>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = void (*)(const boost::shared_ptr<const sensor_msgs::Imu_<st
d::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&); A = boost::_bi::rrlist9<const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void
> > >&, const boost::shared_ptr<const sensor_msgs::Imu_<std::allocator<void> > >&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, con
st boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const 
message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&>; A1 = boost::arg<1>; A2 = boost::arg<2>]’:                                                                          
/usr/include/boost/bind/bind.hpp:1402:50:   required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&, A2&&, A3&&, A4&&, A5&&, A6&&, A7&&, A8&&, A9&&) [with A1 =
 const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&; A2 = const boost::shared_ptr<const sensor_msgs::Imu_<std::allocator<void> > >&; A3 = const boost::shared_ptr<const message
_filters::NullType>&; A4 = const boost::shared_ptr<const message_filters::NullType>&; A5 = const boost::shared_ptr<const message_filters::NullType>&; A6 = const boost::shared_ptr<const message_filters::Nu
llType>&; A7 = const boost::shared_ptr<const message_filters::NullType>&; A8 = const boost::shared_ptr<const message_filters::NullType>&; A9 = const boost::shared_ptr<const message_filters::NullType>&; R 
= void; F = void (*)(const boost::shared_ptr<const sensor_msgs::Imu_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&); L = boost::_bi::list2<boos
t::arg<1>, boost::arg<2> >; boost::_bi::bind_t<R, F, L>::result_type = void]’                                                                                                                               
/usr/include/boost/bind/bind.hpp:833:35:   required from ‘void boost::_bi::list9<A1, A2, A3, A4, A5, A6, A7, A8, A9>::operator()(boost::_bi::type<void>, F&, A&, int) [with F = boost::_bi::bind_t<void, voi
d (*)(const boost::shared_ptr<const sensor_msgs::Imu_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&), boost::_bi::list2<boost::arg<1>, boost::a
rg<2> > >; A = boost::_bi::rrlist9<const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&, const boost::shared_ptr<const sensor_msgs::Imu_<std::allocator<void> > >&, const boost::
shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_fi
lters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&, const boost::shared_ptr<const message_filters::NullType>&>; A1 = bo
ost::arg<1>; A2 = boost::arg<2>; A3 = boost::arg<3>; A4 = boost::arg<4>; A5 = boost::arg<5>; A6 = boost::arg<6>; A7 = boost::arg<7>; A8 = boost::arg<8>; A9 = boost::arg<9>]’                               
/usr/include/boost/bind/bind.hpp:1402:50:   required from ‘boost::_bi::bind_t<R, F, L>::result_type boost::_bi::bind_t<R, F, L>::operator()(A1&&, A2&&, A3&&, A4&&, A5&&, A6&&, A7&&, A8&&, A9&&) [with A1 =
 const boost::shared_ptr<const sensor_msgs::NavSatFix_<std::allocator<void> > >&; A2 = const boost::shared_ptr ...
(more)
edit retag flag offensive close merge delete

Comments

Did you add or uncommented find_package(Boost REQUIRED COMPONENTS system) in you CMakeLists.txt file?

Chaos gravatar image Chaos  ( 2018-08-21 02:54:08 -0500 )edit

No, but the same errors came up after I did.

Old Meme gravatar image Old Meme  ( 2018-08-21 09:25:39 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2018-08-21 10:21:16 -0500

Old Meme gravatar image

Fixed: the actual callback function had the parameters backwards

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2018-08-20 13:45:22 -0500

Seen: 441 times

Last updated: Aug 21 '18