Cant define enum type in IDL project - .idl file #207
-
Attempting to define an IDL which features an enum as a field and project wont compile. Project configuration is not an issue as build succeeds when only the long data type is present. I believe I am defining the enum as per the documentation. Code snippet as shown: Example of some of the errors: Any help would be much appreciated, thanks. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Your issue is not the definition of the enum in the IDL but the field It is happening only in Windows and in the code generated by OpenDDS so I don't think we can do much about. Can you change the name to |
Beta Was this translation helpful? Give feedback.
Your issue is not the definition of the enum in the IDL but the field
IGNORE
defined inside...IGNORE
is a constant defined inWinBase.h
and the compiler complains about in the enum definition.It is happening only in Windows and in the code generated by OpenDDS so I don't think we can do much about.
Can you change the name to
STATE_IGNORE
for example and try again?