Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Undefined varibles in IFI_Utilities.c (http://www.chiefdelphi.com/forums/showthread.php?t=33502)

Bremma 27-01-2005 15:35

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.

Joe Ross 27-01-2005 15:47

Re: Undefined varibles in IFI_Utilities.c
 
Are you using the default code? Which version? What have you modified?

Bremma 27-01-2005 20:26

Re: Undefined varibles in IFI_Utilities.c
 
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?

Greg Ross 28-01-2005 12:55

Re: Undefined varibles in IFI_Utilities.c
 
Quote:

Originally Posted by Bremma
Here's the error I am getting...

C:roboticsifi_utilities.c:234:Error [1105] symbol 'ADC_VREFPLUS_VDD' has not been defined
C:roboticsifi_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.

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.

Mike Betts 28-01-2005 15:05

Re: Undefined varibles in IFI_Utilities.c
 
Quote:

Originally Posted by gwross
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...

Goaliexam 28-01-2005 15:05

Re: Undefined varibles in IFI_Utilities.c
 
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.

Bremma 28-01-2005 19:47

Re: Undefined varibles in IFI_Utilities.c
 
Thanks. Finally got it working.


All times are GMT -5. The time now is 02:46.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi