ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
1 | initial version |
A tutorial at Robotics Back End helped reolve the issue; a m
file that results in a successful build is:
#!/bin/bash
gcc -std=c++11 -I/opt/ros/melodic/include read.cc -c -o foo.o
gcc foo.o \
-std=c++11 \
-L/opt/ros/melodic/lib \
-lrosbag_storage \
-lrosbag \
-lrostime \
-lcpp_common \
-lboost_system \
-lstdc++ \
-lroscpp_serialization \
-o foo.exe