Go to Post Totally agree on the fact that legal strategies are... legal. - Kevin Sevcik [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 27-01-2005, 15:35
Bremma's Avatar
Bremma Bremma is offline
That crazy girl
AKA: Heather Selbe
#0404 (Distant Rage)
Team Role: Electrical
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Franklin, VA
Posts: 22
Bremma is on a distinguished road
Send a message via AIM to Bremma Send a message via MSN to Bremma Send a message via Yahoo to Bremma
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.
__________________
Yay! New team name! We are now Distant Rage!

Robotics team #404 - Team Not Found
  #2   Spotlight this post!  
Unread 27-01-2005, 15:47
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,567
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: Undefined varibles in IFI_Utilities.c

Are you using the default code? Which version? What have you modified?
  #3   Spotlight this post!  
Unread 27-01-2005, 20:26
Bremma's Avatar
Bremma Bremma is offline
That crazy girl
AKA: Heather Selbe
#0404 (Distant Rage)
Team Role: Electrical
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Franklin, VA
Posts: 22
Bremma is on a distinguished road
Send a message via AIM to Bremma Send a message via MSN to Bremma Send a message via Yahoo to Bremma
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?
__________________
Yay! New team name! We are now Distant Rage!

Robotics team #404 - Team Not Found
  #4   Spotlight this post!  
Unread 28-01-2005, 12:55
Greg Ross's Avatar
Greg Ross Greg Ross is offline
Grammar Curmudgeon
AKA: gwross
FRC #0330 (Beach 'Bots)
Team Role: Mentor
 
Join Date: Jun 2001
Rookie Year: 1998
Location: Hermosa Beach, CA
Posts: 2,245
Greg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond reputeGreg Ross has a reputation beyond repute
Send a message via AIM to Greg Ross Send a message via Yahoo to Greg Ross
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.
__________________
Greg Ross (The Grammar Curmudgeon formerly known as gwross)
S/W Engineer, Team 330, the Beach 'Bots
<--The Grammar Curmudgeon loves this cartoon.
“Life should not be a journey to the grave with the intention of arriving safely in a pretty and well preserved body, but rather to skid in broadside in a cloud of smoke, thoroughly used up, totally worn out, and loudly proclaiming "Wow! What a Ride!" Hunter S. Thompson
"Playing a practical joke means doing something mean and calling it funny." Me
  #5   Spotlight this post!  
Unread 28-01-2005, 15:05
Unsung FIRST Hero
Mike Betts Mike Betts is offline
Electrical Engineer
no team
Team Role: Engineer
 
Join Date: Dec 2001
Rookie Year: 1995
Location: Homosassa, FL
Posts: 1,442
Mike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond reputeMike Betts has a reputation beyond repute
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...
__________________
Mike Betts

Alumnus, Team 3518, Panthrobots, 2011
Alumnus, Team 177, Bobcat Robotics, 1995 - 2010
LRI, Connecticut Regional, 2007-2010
LRI, WPI Regional, 2009 - 2010
RI, South Florida Regional, 2012 - 2013

As easy as 355/113...
  #6   Spotlight this post!  
Unread 28-01-2005, 15:05
Goaliexam Goaliexam is offline
Registered User
AKA: Max
FRC #1656 (Haverford Robotics)
Team Role: Alumni
 
Join Date: Dec 2004
Rookie Year: 2004
Location: Gladwyne
Posts: 28
Goaliexam is a jewel in the roughGoaliexam is a jewel in the roughGoaliexam is a jewel in the rough
Send a message via AIM to Goaliexam Send a message via MSN to Goaliexam
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.
  #7   Spotlight this post!  
Unread 28-01-2005, 19:47
Bremma's Avatar
Bremma Bremma is offline
That crazy girl
AKA: Heather Selbe
#0404 (Distant Rage)
Team Role: Electrical
 
Join Date: Jan 2004
Rookie Year: 2003
Location: Franklin, VA
Posts: 22
Bremma is on a distinguished road
Send a message via AIM to Bremma Send a message via MSN to Bremma Send a message via Yahoo to Bremma
Re: Undefined varibles in IFI_Utilities.c

Thanks. Finally got it working.
__________________
Yay! New team name! We are now Distant Rage!

Robotics team #404 - Team Not Found
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Bug: delete_thread() undefined function DanL CD Forum Support 3 18-12-2003 19:50


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

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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