| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
| Sender: | cygwin-owner AT sourceware DOT cygnus DOT com |
| Delivered-To: | mailing list cygwin AT sourceware DOT cygnus DOT com |
| Date: | Wed, 31 Mar 1999 19:32:46 +1000 |
| From: | Fergus Henderson <fjh AT cs DOT mu DOT OZ DOT AU> |
| To: | Aldo Mazzilli <aldo DOT mazzilli AT inria DOT fr> |
| Cc: | gnu-win32 AT cygnus DOT com, crossgcc AT cygnus DOT com |
| Subject: | Re: No response to my problem ?? |
| Message-ID: | <19990331193245.A19871@mundook.cs.mu.OZ.AU> |
| References: | <3701E925 DOT 6BE4 AT inria DOT fr> |
| Mime-Version: | 1.0 |
| X-Mailer: | Mutt 0.95.1i |
| In-Reply-To: | <3701E925.6BE4@inria.fr>; from Aldo Mazzilli on Wed, Mar 31, 1999 at 11:21:41AM +0200 |
On 31-Mar-1999, Aldo Mazzilli <aldo DOT mazzilli AT inria DOT fr> wrote:
> Here is the line 71 of scanner.c :
> FILE *yyin = {stdin}, *yyout = {stdout} ;
The ANSI/ISO C standard does not allow that code.
You need to write it as
FILE *yyin, *yyout;
and then initialize yyin and yyout before you use
them, e.g. in main()
int main() {
yyin = stdin;
yyout = stdout;
...
}
--
Fergus Henderson <fjh AT cs DOT mu DOT oz DOT au> | "I have always known that the pursuit
WWW: <http://www.cs.mu.oz.au/~fjh> | of excellence is a lethal habit"
PGP: finger fjh AT 128 DOT 250 DOT 37 DOT 3 | -- the last words of T. S. Garp.
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe AT sourceware DOT cygnus DOT com
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |