I just went back to the project and discovered that i had been working on one file and trying to compile another copy in the MPLAB folder.

However i would still appreciate some help.

Thanks.