Not Compiling

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?

I would double check to make sure you had the right versions of MPLAB with the C18 compiler.

What version of C18 did you install and what baseline code did you start with?

You’d better have adc.h, otherwise I’d say the C18 installation failed.
It should be in mcc18/h

Did you have administrative rights on the computer when you installed, and are you running with administrative rights? (Is it XP?)

Ours gave us a whole host of wierd errors when we installed under the admin account and used another one to compile.

You should make sure that MPLab is linking to the correct library and the correct compiler.

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.

thanks again,
sravan