Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Very Wierd Error (http://www.chiefdelphi.com/forums/showthread.php?t=54405)

Nothing551 17-02-2007 22:46

Very Wierd Error
 
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

Re: Very Wierd Error
 
Never Mind sorry for the trouble
I found out the problem.

Gaj 18-02-2007 15:54

Re: Very Wierd Error
 
I just encountered the error -- how did you solve it?

Thank you! :)

Orborde 18-02-2007 16:05

Re: Very Wierd Error
 
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:
Code:

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

Re: Very Wierd Error
 
Yup, that was it, thank you very much!

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


All times are GMT -5. The time now is 01:39.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi