:: I assume you know that you want to work on the first error, since :: it often causes the rest. Oh yes, my current compiler is notorious in providing strange results which bear no relation to the actual site of the problem. I've downloaded the manual, I'm not too impressed - the help on the 'Expecting a Declaration' has no entry whatsoever, so I suppose they think it is self explanatory which it is to some extent. The macro is short and sweet. #asm DLY macro exdelay dx=exdelay while dx>0 NOP dx-=1 endw endm #endasm I'm looking at CCS for the 24F version eventually, though it is a 16F877 which I'm using for the testing as that is what the existing compiler is coding for. The trial version is a v4.096. I'll rip out the header file code line by line to see if the errors disappear. Mind you, I've just tried compiling some Microchip 'C' demo code, for the 24F Starter Kit and their (Microchip 'C') compiler refuses to build their own code. Oh well one thing at a time. Thanks for the help. Colin -- cdb, colin@btech-online.co.uk on 9/23/2009 Web presence: www.btech-online.co.uk Hosted by: www.1and1.co.uk/?k_id=7988359 -- http://www.piclist.com PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist