error - Invalid 18f8520 header file!


I was having a problem building our last years code, but cant guess why as the error belongs to a First defined header file… here have a look:

Clean: Done.
Executing: “g:\vt\robotics\mcc18\bin\mcc18.exe” -p=18F8520 “main.c” -fo=“main.o” -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “g:\vt\robotics\mcc18\bin\mcc18.exe” -p=18F8520 “user_routines_fast.c” -fo=“user_routines_fast.o” -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “g:\vt\robotics\mcc18\bin\mcc18.exe” -p=18F8520 “user_routines.c” -fo=“user_routines.o” -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “g:\vt\robotics\mcc18\bin\mcc18.exe” -p=18F8520 “printf_lib.c” -fo=“printf_lib.o” -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
Executing: “g:\vt\robotics\mcc18\bin\mcc18.exe” -p=18F8520 “ifi_utilities.c” -fo=“ifi_utilities.o” -D_FRC_BOARD -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
G:\VT\robotics\Theory 6 code\ifi_picdefs.h:1288: *** Error - Invalid 18f8520 header file!
error 1 spawning g:\vt\robotics\mcc18\bin\cpp18
Halting build on first failure as requested.
BUILD FAILED: Mon Nov 15 20:43:57 2004

any help would be appriciated.

Try replacing the file in the folder with the original file from IFI’s website, maybe something got messed up in your copy of the file.

I’ve seen this one before, see if any of this discussion helps.

My immediate suspicion is an incorrect MPLAB setting.