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

Invoking "make -j2 -l2" failed

asked 2015-04-08 10:13:50 -0500

CEAS gravatar image

updated 2015-04-09 08:52:35 -0500

gvdhoorn gravatar image

hello i'm new with ROS i'm trysing to build simple C++ file using catkin_make for my ROS indigo (OS UBUNTU 14.04 LTS) and i having errors that i can't figure out

having some og this errors :

/usr/include/boost/lexical_cast.hpp:2096:66: error: expected ‘)’ before ‘char’
/usr/include/boost/lexical_cast.hpp:2096:66: error: expected ‘)’ before ‘char’
/usr/include/boost/lexical_cast.hpp: In member function ‘bool boost::detail::lexical_stream_limited_src<CharT, Traits, RequiresStringbuffer>::operator>>(int)’:
/usr/include/boost/lexical_cast.hpp:2102:53: error: expected type-specifier
                 return ((*this) >> reinterpret_cast<boost::array<char, N>& >(output)); 
                                                     ^
/usr/include/boost/lexical_cast.hpp:2102:53: error: expected ‘>’
/usr/include/boost/lexical_cast.hpp:2102:53: error: expected ‘(’
/usr/include/boost/lexical_cast.hpp:2102:53: error: ‘array’ is not a member of ‘boost’
/usr/include/boost/lexical_cast.hpp:2102:66: error: expected primary-expression before ‘char’
                 return ((*this) >> reinterpret_cast<boost::array<char, N>& >(output)); 
                                                                  ^
/usr/include/boost/lexical_cast.hpp:2102:66: error: expected ‘)’ before ‘char’
/usr/include/boost/lexical_cast.hpp:2102:66: error: expected ‘)’ before ‘char’
make[2]: *** [agitr/CMakeFiles/hello.dir/src/hello.cpp.o] Error 1
make[1]: *** [agitr/CMakeFiles/hello.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j2 -l2" failed

Edit:

#include <ros/ros.h>

int main(int argc,char **argv)
{
  ros::init(argc,argv,"hello");

  ros::NodeHandle nh;

  ROS_INFO_STREAM("hello");
}
edit retag flag offensive close merge delete

Comments

This looks like a C++ syntax error in hello.cpp . Can you post that file?

Morgan gravatar image Morgan  ( 2015-04-08 14:49:50 -0500 )edit

@CEAS: I've updated your question with the contents of your comment. Please update your question in the future, if any commenter asks for it.

gvdhoorn gravatar image gvdhoorn  ( 2015-04-09 08:53:18 -0500 )edit

thank you :)

CEAS gravatar image CEAS  ( 2015-04-09 09:42:18 -0500 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2015-04-09 10:58:35 -0500

CEAS gravatar image

It's working now. It just needed to be correctly updated :D After few delete, restore, delete, restore it started working by itself

thank you all ^^

edit flag offensive delete link more

Question Tools

Stats

Asked: 2015-04-08 10:13:50 -0500

Seen: 2,303 times

Last updated: Apr 09 '15