ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
The following patch fixes the issue.
--- src/ros_comm/rosbag_storage/include/rosbag/message_instance.h.orig 2015-04-22 10:29:01.000000000 -0700
+++ src/ros_comm/rosbag_storage/include/rosbag/message_instance.h 2015-04-22 10:23:37.000000000 -0700
@@ -35,6 +35,7 @@
#ifndef ROSBAG_MESSAGE_INSTANCE_H
#define ROSBAG_MESSAGE_INSTANCE_H
+#include <memory>
#include <ros/message_traits.h>
#include <ros/serialization.h>
//#include <ros/ros.h>
2 | No.2 Revision |
The following patch fixes the issue.issue (edit: use this patch instead to fix both roscpp and rosbag_storage).
--- src/ros_comm/rosbag_storage/include/rosbag/message_instance.h.orig src/roscpp_core/roscpp_traits/include/ros/message_forward.h.orig 2015-04-22 10:29:01.000000000 -0700
+++ src/ros_comm/rosbag_storage/include/rosbag/message_instance.h 2015-04-22 10:23:37.000000000 15:04:29.000000000 -0700
+++ src/roscpp_core/roscpp_traits/include/ros/message_forward.h 2015-04-22 15:46:31.000000000 -0700
@@ -35,6 +35,7 -28,6 +28,11 @@
#ifndef ROSBAG_MESSAGE_INSTANCE_H
ROSLIB_MESSAGE_FORWARD_H
#define ROSBAG_MESSAGE_INSTANCE_H
ROSLIB_MESSAGE_FORWARD_H
+// Make sure that either __GLIBCXX__ or _LIBCPP_VERSION is defined.
+#include <memory>
<cstddef>
+
#include <ros/message_traits.h>
// C++ standard section 17.4.3.1/1 states that forward declarations of STL types
#include <ros/serialization.h>
// that aren't specializations involving user defined types results in undefined
//#include <ros/ros.h>
// behavior. Apparently only libc++ has a problem with this and won't compile it.