Robotics StackExchange | Archived questions

compiling error in ros_lib blink example

I am new to ros and I am using virtual machine with ubuntu 20.04 and ros neotic in it. I have installed rosserial arduino package step by step from this .After his I open roslib blink example and it shows the following error /home/rospc/sketchbook/libraries/roslib/ros/nodehandle.h:121:45: error: ‘nullptr’ was not declared in this scope Publisher * publishers[MAXPUBLISHERS] = {nullptr}; ^ /home/rospc/sketchbook/libraries/roslib/ros/nodehandle.h:122:47: error: ‘nullptr’ was not declared in this scope Subscriber_ * subscribers[MAXSUBSCRIBERS] {nullptr}; ^ And other examples despite of roslib examples are successfully compiled and uploaded to the arduino board. And this error message has shown on all ros_lib examples. Can anyone help me with I will be thankfull

Asked by maazismail on 2023-05-31 13:57:41 UTC

Comments

Answers