Hi all, I have recently converted the code for my project from Hi-Tech PICC-lite to the free version of CC5X as I have need for more than the 1k of code that Hi-Tech lets you compile. (CC5X will allow me to use the full 2k of code space on my 16F628). To the problem... My Hi-Tech code used a struct and pointer to the struct as below: typedef struct timer { int state; unsigned int length; unsigned int count; }; struct timer longTimer; struct timer * pLongTimer; pLongTimer = &longTimer; CC5X fails with a compiler error on the final line. Is it possible to set up a pointer to a struct in CC5X? Thanks very much for any and all help, Regards, James Fitzsimons -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads