|
Re: MPLAB syntax error?? No Way!!
Quote:
Originally Posted by Roger
Does this c file #include the bob.h file? Or is this file bob.c? If you (temporarily) define MAXTORQUE in this file does the error go away?
|
Yes, bob.h included.
No, it doesn't go away when defined locally.
Quote:
Originally Posted by Joe Ross
Is there an include statement for bob.h in this file?
Did you put a semicolon or anything after #define MAXTORQUE 100
|
Yes, bob.h is included.
No semi-colon on definition. BUT!!!
We have a winner!!! The line looked like this "#define MAXTORQUE = 100" The equal sign killed it.
Quote:
Originally Posted by Tom Line
Yep.
Is that a valid return statement? I thought it should be return(variable);
|
Not the problem. Tried both ways. Problem solved above!
THANK YOU EVERYONE for helping me find this problem.!!
Note to self: "=" good in variable declaration, bad in definition.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
|