That is not enough code to make a whole program.
Please post your entire code.

Also include the PIC you are using and the compiler version.