Hi,
the best way in this case is to download sample project from Microchip site.
There is a lot of them there.
Than compile it, if will works:
- look for settings in Build Option (came with project)
- look for #include directives in source files and compare them with folders (i.e. /src, /h) of the project.
Prepare your project using downloaded example.
You can delete all files except folders and than put there your source and header files accordingly.
MPLab will say that source files are missing, so delete them from project and add your's.
Mariusz