On Fri, Jul 16, 2010 at 06:33, Evan Jones <[email protected]> wrote:
> On Jul 16, 2010, at 5:47 , [email protected] wrote:
>>
>> if (stabiliser.retraction()==device::HOUSED) cout<<"True\n";
>> //but this doesn't compile
>> stabiliser.set_retraction(device::RETRACTED);
>> }
>
> See the generated .h file to see what might be going wrong. For enums, a
> .set_* method should be generated. Note that the .proto you sent doesn't
> have RETRACTED defined, so maybe that is your problem?

.. and given that you indeed have RETRACTED defined, look out for
global #define somewhere - they might be the source for hard-to-see
problems with ALL_UPPERCASE enumeration values.
Best to debug is to run your compiler in preprocessing mode and eyball
the output along the non-compiling lines.

(and I assume 'device' is indeed RR_system ? And 'stabiliser' is 'dev'
?... please don't try to partially redact the proto-buffer and code
because then it is really hard to find out what the problem is.
Provide a self contained example for these cases).

-h

>
> Evan
>
> --
> Evan Jones
> http://evanjones.ca/
>
> --
> You received this message because you are subscribed to the Google Groups
> "Protocol Buffers" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected].
> For more options, visit this group at
> http://groups.google.com/group/protobuf?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Protocol Buffers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/protobuf?hl=en.

Reply via email to