Ask Your Question

ROS fuerte rosmake -std=c++11 compile error

asked 2015-02-18 14:11:08 -0500

Bardo91 gravatar image

updated 2015-02-18 15:02:33 -0500

Hi, I was trying to compile a node that uses a library that needs c++11 flag (It uses std::function and nullptr among other features).

Here is de outpulog:

But summarizing:

               from /usr/include/c++/4.8/bits/stl_algo.h:62,
               from /usr/include/c++/4.8/algorithm:62,
               from /usr/include/boost/math/tools/config.hpp:16,
               from /usr/include/boost/math/special_functions/round.hpp:13,
               from /opt/ros/fuerte/include/ros/time.h:58,
               from /opt/ros/fuerte/include/ros/ros.h:38,
               from /home/bardo91/programming/EC-SAFEMOBIL/ros/PatrollingCV/uav_vision/src/uav_vision_node.cpp:9:
     /usr/include/c++/4.8/bits/stl_construct.h: In instantiation of ‘void std::_Construct(_T1*, _Args&& ...) [with _T1 = actionlib_msgs::GoalStatus_<std::allocator<void> >; _Args = {actionlib_msgs::GoalStatus_<std::allocator<void> >&}]’:
       /usr/include/c++/4.8/bits/stl_uninitialized.h:75:53:   required from ‘static _ForwardIterator std::__uninitialized_copy<_TrivialValueTypes>::__uninit_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*; _ForwardIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*; bool _TrivialValueTypes = false]’

     /usr/include/c++/4.8/bits/stl_uninitialized.h:117:41:   required from ‘_ForwardIterator std::uninitialized_copy(_InputIterator, _InputIterator, _ForwardIterator) [with _InputIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*; _ForwardIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*]’
      /usr/include/c++/4.8/bits/stl_uninitialized.h:258:63:   required from ‘_ForwardIterator std::__uninitialized_copy_a(_InputIterator, _InputIterator, _ForwardIterator, std::allocator<_Tp>&) [with _InputIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*; _ForwardIterator = actionlib_msgs::GoalStatus_<std::allocator<void> >*; _Tp = actionlib_msgs::GoalStatus_<std::allocator<void> >]’

And so on... It's not only for the library, I would like to use new features of c++, but I don't know what to do to fix it. Can anybody help me?

Thank in advance

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2015-02-24 03:45:39 -0500

Bardo91 gravatar image

ROS fuerte do not use all about c++11. Moving to ROS indigo fix the problem.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2015-02-18 14:11:08 -0500

Seen: 104 times

Last updated: Feb 24 '15