Re: [ros-users] ROS_BUILD with optimization causes disfuncti…

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: User discussions
日付:  
To: User discussions
題目: Re: [ros-users] ROS_BUILD with optimization causes disfunctionality
2011/2/11 Ken Tossell <>:
> On Fri, Feb 11, 2011 at 4:07 AM, Steven Bellens
> <> 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
>
> https://code.ros.org/mailman/listinfo/ros-users
>