|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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 Error Code:
typedef void* va_list; Has anyone encountered this before, or have any solutions? Thanks a bunch, Jedd |
|
#2
|
|||
|
|||
|
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! #include <stdio.h> |
|
#3
|
|||
|
|||
|
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?
|
|
#4
|
|||||
|
|||||
|
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. |
|
#5
|
|||
|
|||
|
Re: stdarg.h Syntax error
Quote:
Thanks a bunch for your help! Jedd |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| C18 v2.4 -- Syntax error where there is no syntax error | Joel J | Programming | 7 | 12-01-2007 17:27 |
| Array Syntax Error | Andrew Blair | Programming | 7 | 05-02-2006 14:11 |
| Syntax Error! | Denz | Programming | 15 | 04-02-2006 23:57 |
| Simple Syntax Error | miketwalker | Programming | 6 | 06-01-2004 00:17 |