This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: "parse error before" bug
- From: "Robert McNulty Junior" <bmj2001 at bellsouth dot net>
- To: =?BIG5?B?sWmr7a3X?= <changht at ismp dot iie dot ncku dot edu dot tw>,<cygwin at cygwin dot com>
- Date: Tue, 30 Jul 2002 22:56:04 -0500
- Subject: Re: "parse error before" bug
- References: <20020731104833.C5C6.CHANGHT@ismp.iie.ncku.edu.tw>
----- Original Message -----
From: "±i«í×" <changht@ismp.iie.ncku.edu.tw>
To: <cygwin@cygwin.com>
Sent: Tuesday, July 30, 2002 9:49 PM
Subject: "parse error before" bug
> hi
>
> i'm compiling a small program go.c like:
>
> ----------------------------------------------
> #include <stdio.h>
> int main(){
> printf("parse error after this");
> int a;
> }
> ----------------------------------------------
>
> with the error below:
>
> ----------------------------------------------
> $ gcc go.c -o go
> go.c: In function `main':
> go.c:4: parse error before `int'
>
> ----------------------------------------------
>
> i found removing the line "printf(....);" turns to be OK then.
>
> Evnironment:
> Notebook: compaq presario 1700 with PIII 933-M
> Windows XP + gcc 2.95.3-5 (Cygwin Setup.exe version 2.249.2.5)
>
>
> --
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
> Bug reporting: http://cygwin.com/bugs.html
> Documentation: http://cygwin.com/docs.html
> FAQ: http://cygwin.com/faq/
>
#include <stdio.h>
int main(){
int a;
printf("parse error after this");
}
Variables are always before compiler functions.
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/