You likely have a conflicting #define in one of your headers.
On Fri, Dec 17, 2010 at 9:11 PM, panj <
panjia1983@gmail.com> wrote:
>
> solved....Must include #include <pcl_ros/io/bag_io.h>
> #include <pcl/point_types.h>
> or
> #include <rosbag/bag.h>
> #include <rosbag/chunked_file.h>
> #include <rosbag/view.h>
> #include <sensor_msgs/point_cloud_conversion.h>
> #include <boost/foreach.hpp>
> #include <sensor_msgs/PointCloud2.h>
> before headers of my own...Weird...
>
> --
> View this message in context:
> http://ros-users.122217.n3.nabble.com/Problems-with-boost-and-sensor-msgs-tp2108524p2109123.html
> Sent from the ROS-Users mailing list archive at Nabble.com.
> _______________________________________________
> ros-users mailing list
> ros-users@code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>