compile errors messages only in debug - ok in release
Hi guys,
Not sure why I am getting these two errors in bold below in debug mode only of a ROS project. It compiles fine in release. I have created custom messages but I can't figure out if that's the cause or not. Like I said it compiles fine in release mode.
I am using ros melodic on Ubuntu 18.04 in QT
Thanks in advance!
In file included from /opt/ros/melodic/include/ros/serialization.h:37:0, from /opt/ros/melodic/include/ros/publisher.h:34, from /opt/ros/melodic/include/ros/node_handle.h:32, from /opt/ros/melodic/include/ros/ros.h:45, from /home/Projects/myprojects/mypackages/src/my_core_package/./include/controller_ros_wrapper.h:5, from /home/Projects/myprojects/mypackages/src/my_core_package/src/controller_ros_wrapper.cpp:1: /opt/ros/melodic/include/ros/message_traits.h: In instantiation of 'static const char* ros::message_traits::MD5Sum<m>::value(const M&) [with M = std::__cxx11::basic_string<char>]': /opt/ros/melodic/include/ros/message_traits.h:254:102: required from 'const char* ros::message_traits::md5sum(const M&) [with M = std::__cxx11::basic_string<char>]' /opt/ros/melodic/include/ros/publisher.h:113:7: required from 'void ros::Publisher::publish(const M&) const [with M = std::__cxx11::basic_string<char>]' /home/Projects/myprojects/mypackages/src/my_core_package/src/controller_ros_wrapper.cpp:143:50: required from here /opt/ros/melodic/include/ros/message_traits.h:125:14: error: 'const class std::__cxx11::basic_string<char>' has > no member named '__getMD5Sum' return m.__getMD5Sum().c_str(); ~~^~~~~~~~~~~ /opt/ros/melodic/include/ros/message_traits.h: In instantiation of 'static const char* ros::message_traits::DataType<m>::value(const M&) [with M = std::__cxx11::basic_string<char>]': /opt/ros/melodic/include/ros/message_traits.h:263:104: required from 'const char* ros::message_traits::datatype(const M&) [with M = std::__cxx11::basic_string<char>]' /opt/ros/melodic/include/ros/publisher.h:113:7: required from 'void ros::Publisher::publish(const M&) const [with M = std::__cxx11::basic_string<char>]' /home/Projects/myprojects/mypackages/src/my_core_package/src/controller_ros_wrapper.cpp:143:50: required from here /opt/ros/melodic/include/ros/message_traits.h:142:14: error: 'const class std::__cxx11::basic_string<char>' has > no member named '__getDataType' return m.__getDataType().c_str();