Chip Burns

'C' type enums in CW 10.x / Eclipse

Discussion created by Chip Burns on Jul 30, 2011
Latest reply on Aug 2, 2011 by CrasyCat

Does the CW 10.x / Eclipse compiler support 'C' type enums?  Some don't (e.g. IAR C++) and even the bracketing:

 

SomeHeaderFile.h

 

#ifdef __cplusplus

extern "C" {

#endif

 

typedef

enum     _SOMEENUMNAME

{

        ...

} SOMEENUMNAME;

 

#ifdef __cplusplus

}

#endif

 

will still fail to compile. 

 

We're currently using CW 5.7.0 (which supports 'C' type enums) and I'm trying to guage the pain of conversion to CW 10.x on this topic.

 

Thx,

 

Chip Burns

Outcomes