> -----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. Regards Mike ======================================================================= This e-mail is intended for the person it is addressed to only. The information contained in it may be confidential and/or protected by law. If you are not the intended recipient of this message, you must not make any use of this information, or copy or show it to any person. Please contact us immediately to tell us that you have received this e-mail, and return the original to us. Any use, forwarding, printing or copying of this message is strictly prohibited. No part of this message can be considered a request for goods or services. ======================================================================= -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist