[ros-users] ROS_BUILD with optimization causes disfunctional…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: User discussions
Dato:  
Til: User discussions
Emne: [ros-users] ROS_BUILD with optimization causes disfunctionality
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