Without more code it's impossible to tell, but likely something you're #including has #defined Status to something you're not expecting.  Nothing in ROS should be doing this.<br><div><br></div><div>Josh<br><br>

<div class="gmail_quote">On Thu, Aug 12, 2010 at 2:17 PM, Sanja Popovic <span dir="ltr"><<a href="mailto:sanja@mit.edu">sanja@mit.edu</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

Hi,<br>
<br>
I've created a message for my package named Status and in the code, I had the following function:<br>
void pullPickCallback(bookbot::Status s) {<br>
...<br>
}<br>
<br>
When compiling the file, I got the following error:<br>
  /opt/ros/cturtle/stacks/lis/bookbot/src/driver.cpp:57: error: variable or field ‘pullPickCallback’ declared void<br>
  /opt/ros/cturtle/stacks/lis/bookbot/src/driver.cpp:57: error: expected unqualified-id before ‘int’<br>
<br>
Line 57 is the one I copied above.<br>
<br>
Changing the message name from Status to something else fixed the problem. Is Status reserved name in ROS for something or did I just bump into a really strange bug?<br>
<br>
Thanks,<br>
Sanja<br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</blockquote></div><br></div>