Compiling error

Student just installed new Mplab with the new compiler and Kevin’s new code.

All we added was a line of drive code for the teleoperated mode, when we compiled this is what the output showed.

Clean: Deleting intermediary and output files.
Clean: Deleted file “C:\2008code\ifi_frc_simple_30\ifi_frc.mcs”.
Clean: Done.
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “autonomous.c” -fo=“autonomous.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
C:\2008code\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate ‘stdio.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “disabled.c” -fo=“disabled.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
C:\2008code\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate ‘stdio.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “ifi_code.c” -fo=“ifi_code.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_code.c:9:Error [1027] unable to locate ‘adc.h’
C:\2008code\ifi_frc_simple_30\ifi_code.c:10:Error [1027] unable to locate ‘delays.h’
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “ifi_frc.c” -fo=“ifi_frc.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
C:\2008code\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate ‘stdio.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “interrupts.c” -fo=“interrupts.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “pwm.c” -fo=“pwm.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “serial_ports.c” -fo=“serial_ports.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
C:\2008code\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate ‘stdio.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “teleop.c” -fo=“teleop.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
C:\2008code\ifi_frc_simple_30\serial_ports.h:48:Error [1027] unable to locate ‘stdio.h’
Executing: “C:\mcc18\bin\mcc18.exe” -p=18F8722 “timers.c” -fo=“timers.o” -k -mL -Ou- -Ot- -Ob- -Op- -Or- -Od- -Opa-
C:\2008code\ifi_frc_simple_30\ifi_frc.h:31:Error [1027] unable to locate ‘p18cxxx.h’
Skipping link step. Not all sources built successfully.
BUILD FAILED: Tue Jan 29 20:12:40 2008

You need to add a directory path to the mcc18 system libraries.

In MPLAB:
Project -> Build Options -> Project
Set the “Include Path” to C:\mcc18\h