cdb wrote: > I'm trialing the CCS compiler and to that end I've ported some code > from my current compiler over. > > CCS is sulking at the following line. > > enum glcdflg{RBST=0x10, Off=0x20, BSY=0x80}; > > It informs me that it is 'Expecting an identifier', what is puzzling > me is that apart from the fact this does compile in my current > compiler, it is quite happy with the previous enums of > > enum chipsel{LEFT, RIGHT, BOTH ,NONE}; > enum rgb{BLACK, WHITE, RED, GRN, BLU} RGBW; No experience to speak of with CCS, but the obvious difference is the explicit value assignments. Maybe CCS doesn't support them (bad - use #define) or doesn't support hex notation (use base 10), or requires some strange syntax for it (ouch). If they have a manual section "divergences from the C standard" (do they? if not, they should), that probably would be the place to look for more info. Gerhard -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist