[ros-users] Illegal instruction

トップ ページ
添付ファイル:
Eメールのメッセージ
+ (text/plain)
このメッセージを削除
このメッセージに返信
著者: Bill Morris
日付:  
To: ros-users
題目: [ros-users] Illegal instruction
std::string foo;

...

ROS_INFO("Foo: %s",foo);
$ bin/my_node
Illegal instruction

This throws an illegal instruction during execution.

ROS_INFO("Foo: %s",foo.c_str());
Obviously works correctly.

Is it possible to get this to produce a better error message?