Alain,

I recopied the code from your post. Still getting

Symbol not previously defined (PortC)
Symbol not previously defined (TRISC)
etc etc etc