![]() |
stdarg.h Syntax error
Hello,
This is my first time posting here, and first year compteting! I'm excited to be here, and thought that was worth mentioning :) My problem, as that out of the blue my compiler gives me the error Code:
Stdarg.h:6: Syntax ErrorCode:
typedef void* va_list;Has anyone encountered this before, or have any solutions? Thanks a bunch, Jedd |
Re: stdarg.h Syntax error
I have a hunch that you messed something up near the beginning of the file, and the stdarg.h error is simply the compiler complaining as a result of something in your file. For example:
Code:
int foo = 6 // no semicolon! |
Re: stdarg.h Syntax error
All right, thanks. I don't think that is the problem as I've only added one function and the printf() function to all the code, and the function I made worked properly the day before... I'll check again. Anyne by chance know what file stdarg.h is included in?
|
Re: stdarg.h Syntax error
stdarg.h is included by stdio.h
It is simply the first true line of code the compiler encounters when #include <stdio.h> is used and it can recognize that an error has occurred. The error won't be in the system files, but in .c files you have touched. Usually I've seen this when random characters are accidentally typed on the very first line of a .c file. Take a look to see if anything has been typed BEFORE the /****************** on the very top line of the .c files you've been modifying. |
Re: stdarg.h Syntax error
Quote:
Thanks a bunch for your help! Jedd |
| All times are GMT -5. The time now is 04:14. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi