Trouble building code

ADC_CH0 not defined (error msg on build)

in ifi_frc.h add the line #include <adc.h> after #include <p18cxxx.h>

Has anyone else had this problem with missing code?

well it seems that in either the ADC.h header file ADC_CH0 (which I believe is analog to digital convertor channel 1) isn’t defined…which is strange. if you comment out the offending refrences to ADC_CH0 do you recieve a second error about ADC_CH1? can you post your direct error message up here?

Do you happen to be using rc_ana_in01 some where in the code you wrote? We got a very similar problem when one of our programers wrote