![]() |
Routine declaration syntax error (Or: Where's wlado?)
:confused: Here's a stumper:
Code:
char Autonomous_1 (char State) // <---Right Here! |
Re: Routine declaration syntax error (Or: Where's wlado?)
That looks OK on cursory examination. What comes right before that line? Is it possible you have unmatched braces?
|
Re: Routine declaration syntax error (Or: Where's wlado?)
a lot of times, it will give you a syntax error and the real error will be 10 lines up from the little green arrow.
|
Re: Routine declaration syntax error (Or: Where's wlado?)
Quote:
Code:
#include "printf_lib.h" |
Re: Routine declaration syntax error (Or: Where's wlado?)
The only thing above it is comments and #includes
|
Re: Routine declaration syntax error (Or: Where's wlado?)
Have you modified printf_lib.h?
|
Re: Routine declaration syntax error (Or: Where's wlado?)
Quote:
|
Re: Routine declaration syntax error (Or: Where's wlado?)
I added
Code:
/************************************************** ***************************** |
Re: Routine declaration syntax error (Or: Where's wlado?)
Code:
/******************************************************************************* |
Re: Routine declaration syntax error (Or: Where's wlado?)
Well, you might be right. I'm still stumped. You didn't do something weird like #defining char, Autonomous_1 or State, did you? (Or parentheses or underscores, taking a lesson from those obfuscated C samples posted elsewhere?)
|
Re: Routine declaration syntax error (Or: Where's wlado?)
I'm stumped too... :)
|
Re: Routine declaration syntax error (Or: Where's wlado?)
Since you have an #ifdef/#endif protecting your printf_lib.h from being included multiple times, I suspect the problem is being caused by the line(s) before that #include. Post a bit more context, and look at the other included files for unmatched parentheses or braces or even missing semicolons.
|
Re: Routine declaration syntax error (Or: Where's waldo?)
After 3 of us working on 4 computers last night to get it to compile, we got it to compile. There were various similar problems throughout the new stuff. I have to ask: Is there a limit on the number af function prototypes in a file?
|
Re: Routine declaration syntax error (Or: Where's waldo?)
Quote:
|
Re: Routine declaration syntax error (Or: Where's wlado?)
Is there some reason why you can't use the stock printf lib if it works? If you can't, try remodifying it one change at a time to see what it is.
|
| All times are GMT -5. The time now is 02:54. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi