![]() |
Syntax Error: externs, structs, and macros
Here's the thing: I'm getting a syntax error in 2 seperate lines that are probably related. I have narrowed it down to the point that I know that it is not the next or previous line.
They are: Code:
BEGIN_MOTOR_LIST(motor_list)Code:
REF_MOTOR_LIST(motor_list);Code:
#ifdef _MOTORS_H_Code:
char LeftDrive, RightDrive, E2;Enlightenment? |
Re: Syntax Error: externs, structs, and macros
Code:
#define MOTOR(type,pwm,oi,pot,pot_min,pot_max,pot_center,p wm_min,pwm_max,pwm_change) {type, &pwm, &oi, pot, pot_min, pot_max, pot_center, pwm_min, pwm_max, pwm_change }, |
Re: Syntax Error: externs, structs, and macros
I didn't spot anything wrong off-hand (other than the space noted by the previous poster, but I'm guessing that was a copy/paste problem?). Something you might try to narrow down the problem is pre-processing the C file to see how your macros worked out. There should be a cpp18.exe as part of the MCC18 package - this is the C preprocessor. Just run:
Code:
cpp18 {filename}.c -I{path to MCC18 include directory} > {filename}.pre |
Re: Syntax Error: externs, structs, and macros
Quote:
Quote:
|
| All times are GMT -5. The time now is 00:00. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi