View Full Version : 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?
fallen751
30-01-2008, 17:47
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?
JonathanLKS
30-01-2008, 18:33
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
Get_ADC_Result(rc_ana_in01);
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.