Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming FAQ (http://www.chiefdelphi.com/forums/showthread.php?t=31817)

hipsterjr 06-03-2008 22:42

Re: Programming FAQ
 
Q: What is the main difference between robotc and MPLAB? We have used MPLAB in the past but I thought I'd try robotc on our new programing computer.

hipsterjr 05-08-2008 21:50

Re: Programming FAQ
 
Q. Using MPLAB, I keep getting:
Quote:

user_routines.c:128:Error [1105] symbol 'ADC_16ANA' has not been defined
I get this error with some of our older code and the 2007 FRC default code I'm changing.

I thought it was defined in ifi_aliases.h:
Quote:

#define SIXTEEN_ANALOG ADC_16ANA /* All analog */
and yes, it is included in user_routines.c
yet it still reads "undefined"

anyone have a fix for this?

Pat Fairbank 05-08-2008 22:49

Re: Programming FAQ
 
Actually,
Code:

#define SIXTEEN_ANALOG ADC_16ANA /* All analog */
assigns SIXTEEN_ANALOG_ADC the value of ADC_16ANA, not the other way arround. ADC_16ANA itself is defined in [your mcc18 folder]\h\adc.h.

I have
Code:

#include <adc.h>
on line 18 of my ifi_aliases.h. Make sure you have it too, and that the file exists in your mcc18 tree.

hipsterjr 13-08-2008 15:16

Re: Programming FAQ
 
MCC 18/h/adc exist and I have

Quote:

#include <adc.h>
on line 18 of ifi_aliases.h.

But I still get
Quote:

user_routines.c:128:Error [1105] symbol 'ADC_16ANA' has not been defined
what else could it be?

edit: I'm using MPLAB C18 v3.16

Joe Ross 13-08-2008 15:51

Re: Programming FAQ
 
Quote:

Originally Posted by hipsterjr (Post 761468)
MCC 18/h/adc exist and I have

on line 18 of ifi_aliases.h.

But I still get

what else could it be?

What compiler version are you using?


All times are GMT -5. The time now is 08:26.

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