I need a little help since I keep getting these errors while compiling. I can't find an answer that helps me out via google. I keep getting this error...
"both separate parameter declaration and parameter list declaration are used"
It refers to both off my global variables. These global vars are used when an interrupt is called. The compiler also gives a syntax error in the code off the interrupt. With the little knowledge that I have, I can't seem to find any errors. I even compared it with the examples off this site.
Thx in advance for some advice... here's the code. I stripped it a bit not to overwhelm you ;)
Sorry about line 21. I accidentally deleted it while stripping some code...
I get the following errors....
line 7: both separate parameter declaration and parameter list declaration are used
line 8: both separate parameter declaration and parameter list declaration are used
line 12: `struct struct2' declared in parameter declaration
line 19: both separate parameter declaration and parameter list declaration are used
line 19: syntax error near `{'
The last two errors noted at line 19, also occur at line 31 & 37.
I found the compiler manual but I need a little help to translate it to a newby kinda language.
Explanation for errors at line 7,8, 19, 34 & 40... Though a function is defined with a prototype declaration, non-prototype parameters are also declared.
The separate parameter declaration is not needed.
Explanation for struct error: A tag is declared in a parameter declaration of a non-prototype function definition at the same time. The
scope where the tag is visible is the block scope from the tag declaration to the end of the function, then
a parameter type mismatch may occur in a function call.
Continues the compilation making the declaration valid.
I double checked everything and stripped contents of the header file, into the main file... Added, stripped en rebuild several things.
Only...
I still get the same problems. I loaded the C file into a sample project that gives no errors while compiling. When I overwrite it with my C file, it still generates the same errors. I talking about these errors...
line 19: both separate parameter declaration and parameter list declaration are used
line 19: syntax error near `{'
Plus the same error happens at every beginning of a function or interrupt function. Pfff, I'm out off ideas.
What did you exactly mean with #defines messing up while compiling ?