Error when compiling

I’ve been trying to include the files for the gyro and the encoders. Whenever i try to compile (i’m using MPLab, BTW) it says,
“C:\Documents and Settings\07 code\user_routines.c:24:Error [1027] unable to locate ‘encoder.h’
C:\Documents and Settings\07 code\user_routines.c:26:Error [1027] unable to locate ‘gyro.h’”

it’s included at the beginning of the file and i think i followed every instruction. does anyone know what’s wrong?

Generally, that means you don’t have your include directories set up properly. So the compiler is looking for these files that you have #included, but cannot find them. Since I don’t have MPLAB in front of me, I can’t give you exact instructions, but here goes:

Somewhere in the ‘project’ menu (or a menu similar to ‘project’), there should be an option to set up the compiler or linker, or to set include directories. Once you find that menu, you have to input whereever you put kevin watson code that has ‘encoder.h’ and ‘gyro.h’.

YESSSS!!! it works now! thnx!