[ros-users] ROS_BUILD with optimization causes disfunctionality

Steven Bellens steven.bellens at mech.kuleuven.be
Fri Feb 11 09:07:23 UTC 2011


Hi,

I'm working on a library reading in data measurements from TCP/IP
sockets. Done developping it, I tried to compile it with
set(ROS_BUILD_TYPE Release) (used to work with: set(ROS_BUILD_TYPE Debug)).
The library does not behave as expected afterwards however: when at
first it reads in data streams from the sockets and recognizes a
specific end sequence, it now keeps on saying it can't find that end
sequence. At the server side there did not change anything however -
only difference is the ROS_BUILD_TYPE.
What exactly happens when changing the BUILD_TYPE that can cause this
kind of disfunctioning?
I was using #ifdef NDEBUG statements to print out debug information,
but already commented those out and the result is the same.

regards,

Steven



More information about the ros-users mailing list