Log in

View Full Version : Very Wierd Error


Nothing551
17-02-2007, 22:46
I get this error when I try to build an altered camera code


C:\MCC18\h\stdarg.h:6:Error: syntax error

Does anybody know what this means and can anybody help?

Nothing551
17-02-2007, 22:48
Never Mind sorry for the trouble
I found out the problem.

Gaj
18-02-2007, 15:54
I just encountered the error -- how did you solve it?

Thank you! :)

Orborde
18-02-2007, 16:05
Such errors that seem to show up in standard header files are because C is kind of dumb. Look just before where the header file got #included in your code. It's often something like this:

int some_global = 7 // no semicolon!
#include <stdio.h> // but the error will probably be shown as being from this file

Gaj
18-02-2007, 18:03
Yup, that was it, thank you very much!

(As it turns out, there was a rogue 'z' at the very top of the file)