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

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: Kei Okada
Dato:  
Til: ros-users
Emne: Re: [ros-users] How to debug the source code in C?
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

https://lists.sourceforge.net/lists/listinfo/ros-users