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

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Kei Okada
Date:  
To: ros-users
Subject: 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