[ros-users] ROS_BUILD with optimization causes disfunctionality
Steven Bellens
steven.bellens at mech.kuleuven.be
Fri Feb 11 09:29:04 UTC 2011
2011/2/11 Ken Tossell <ktossell at umd.edu>:
> On Fri, Feb 11, 2011 at 4:07 AM, Steven Bellens
> <steven.bellens at mech.kuleuven.be> wrote:
>> I was using #ifdef NDEBUG statements to print out debug information,
>> but already commented those out and the result is the same.
>
> Maybe there's a hidden assert()ion with side effects. Have you tried
> building in release mode but without -DNDEBUG? The "RelWithAsserts"
> build type should do that.
I just solved the problem: the ending sequence was defined as:
"const char ESC_CHARS[] = {'\r','\n'};"
changing it to:
"const std::string ESC_CHARS = "\r\n";" _or_
"const char ESC_CHARS[] = "\r\n";"
solves the problem. I have no idea why that is :)
Steven
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
More information about the ros-users
mailing list