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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

525 Views
ChipBurns
Contributor I

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

Labels (1)
0 Kudos
Reply
1 Reply

313 Views
CrasyCat
Specialist III

Hello

 

With V10.x we did change from CodeWarrior classic IDE to an Eclipse IDE.

We did not remove basic functionality from the build tools.

 

So if your classic IDE tools support enumerated types, the Eclipse version should support them as well.

 

CrasyCat

0 Kudos
Reply