[ros-users] How to debug the source code in C?

Kei Okada k-okada at jsk.t.u-tokyo.ac.jp
Wed Aug 18 20:07:05 UTC 2010


Hi,

How to add compile definition with string variable, for example
-DFOO="bar" in rosbuild_add_compile_flags?

I tried

 set(COMPILE_FLAGS "-O2 -DFOO=\"bar\")
 rosbuild_add_compile_flags(hoge ${COMPILE_FLAGS})

but, this did not works well, it seems compile with
 gcc -O2 -DFOO=bar.

Thanks

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
ros-users mailing list
ros-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/ros-users



More information about the ros-users mailing list