Undefined varibles in IFI_Utilities.c

Here’s the error I am getting…

C:\robotics\ifi_utilities.c:234:Error [1105] symbol ‘ADC_VREFPLUS_VDD’ has not been defined
C:\robotics\ifi_utilities.c:234:Error [1105] symbol ‘ADC_VREFMINUS_VSS’ has not been defined

I went and looked at the code, and I see it used, but not defined. Does anyone know how to define this, or at least make it so I can compile this with out any errors? I am on MPLAP c18 V. 2.40 already if you think that is the problem.

Are you using the default code? Which version? What have you modified?

Well, I got the error both in the default code in 2.2 and 2.4. 2.4 was the latest I had been using, but I will be reverting to 2.2 becuase I am not using the camera. I have modified nothing. It’s for a quick run of the drive train, so I only need it for that. Any ideas?

These symbols are defined in adc.h which is included in ifi_utilities.c. By default, it is located in C:mcc18h. If you installed your compiler elsewhere, look for it there.

The question now is why you got these errors without getting another one saying that adc.h cannot be found.

It probably found an old version of adc.h…

I got those same errors myself. Instead of creating a project from the Project menu, you instead want to go File->Open Workspace and open the workspace file inside the default code directory (.mcw I think). Then it should be able to compile successfully. I understand your confusion, this problem troubled me for almost a week.

Thanks. Finally got it working.