[ros-users] ROS_BUILD with optimization causes disfunctional…

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: User discussions
Date:  
To: User discussions
Subject: [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