On Mon, 21 Sep 2009, Michael Rigby-Jones wrote: > > > > -----Original Message----- > > From: piclist-bounces@MIT.EDU [mailto:piclist-bounces@MIT.EDU] On > Behalf > > Of cdb > > Sent: 19 September 2009 12:57 > > To: PICLIST@MIT.EDU > > Subject: [PIC] enum declaration in CCS causes a compiler error > > > > > > 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' > > Is it possible one of the symbols in your enum has already been used in > a #define somewhere? e.g. 'Off' is the kind of symbol that might have > been defined for boolean operations. > > If your IDE/Editor has a facility to search all projects files this > would be easy to find. > Another common problem is a missing semicolon from a previous declaration e.g. int fred, bert, enum glcdflg{RBST=0x10, Off=0x20, BSY=0x80}; Regards Sergio masci -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist