[omniORB] typedef enum causes error
Duncan Grisby
dgrisby@uk.research.att.com
Fri, 27 Apr 2001 10:45:14 +0100
On Friday 27 April, "Jonas Reimers" wrote:
> I am writing an IDL file that includes some enumerations. When I am
> trying to write typedef enum omniidl complains and I gets
> : Syntax error in interface body
That's because there's a syntax error in the interface body... :-)
> interface Op
> {
> typedef enum eT
> {
> _Ok,
> _Update
> };
You shouldn't use typedef there. Just enum eT {...} is what you need.
By the way, the _ prefixes quite probably aren't doing what you think
they are. The enum members are just called "Ok" and "Update" with the
_ prefixes stripped off.
Cheers,
Duncan.
--
-- Duncan Grisby \ Research Engineer --
-- AT&T Laboratories Cambridge --
-- http://www.uk.research.att.com/~dpg1 --