Yep, it's possible. You would make it a bit easier on your programming with a slight rewrite, like this: typedef struct { ... } timer; timer longTimer,*pLongTimer; pLongTimer = &longTimer; // Works Of course, if you must, you can still use the nametag: typedef struct tagTimer { ... } timer; If you're converting your code from another compiler, please try to play around with RAM scope. CC5X can do some quite nice stuff with RAM, like: void foo() { uns8 dataA,dataB; dataA=12; dataB=45; } This uses 2 bytes RAM void foo() { { // Scope start uns8 dataA; dataA=12; } // Scope end { // Scope start uns8 dataB; dataB=45; } // Scope end } This uses 1 byte RAM. When playing with structs, this can save some substantial amount of RAM. JF> Hi all, JF> I have recently converted the code for my project from Hi-Tech PICC-lite to JF> the free version of CC5X as I have need for more than the 1k of code that JF> Hi-Tech lets you compile. (CC5X will allow me to use the full 2k of code JF> space on my 16F628). JF> To the problem... My Hi-Tech code used a struct and pointer to the struct as JF> below: JF> typedef struct timer JF> { JF> int state; JF> unsigned int length; JF> unsigned int count; JF> }; JF> struct timer longTimer; JF> struct timer * pLongTimer; JF> pLongTimer = &longTimer; JF> CC5X fails with a compiler error on the final line. Is it possible to set up JF> a pointer to a struct in CC5X? JF> Thanks very much for any and all help, JF> Regards, JF> James Fitzsimons JF> -- JF> http://www.piclist.com hint: PICList Posts must start with ONE topic: JF> [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads -- http://www.piclist.com hint: PICList Posts must start with ONE topic: [PIC]:,[SX]:,[AVR]: ->uP ONLY! [EE]:,[OT]: ->Other [BUY]:,[AD]: ->Ads