Our team recently got a laptop from our high school to use mostly for programming. I just installed MPLab, the C18 Compiler and IFI Loader.
Then I tried to compile my program and I keep getting an error saying that ADC_16ANA cannot be found. I tried trracing the problem it looks like its coming from adc.h, which I do not have the source code for.
Anyone had a similar problem or can help me solve it?
Well, I wanted to get the compiler working yesterday, so I spent some time. I read through the Kevin Watson’s thread on his C18 3.0+ and I found out that adc.h was messed up on C18 3.15+. So I upgraded MPLab to v8 and then re-installed C18 Compiler 3.10. It still was looking for the variable. I then installed the C18 Compiler that was given to us on the 2008 Microchip CD and I guess it either overwrote the 3.16 and it now works.
Thank you for your replies but the problem has been solved.
I got a little worried that it might not work and posted before completely finishing my investigation of the problem.