delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1998/05/28/03:16:57

From: fjh AT cs DOT mu DOT OZ DOT AU (Fergus Henderson)
Subject: Re: Compiler bug?
28 May 1998 03:16:57 -0700 :
Message-ID: <19980528102211.25593.cygnus.gnu-win32@murlibobo.cs.mu.OZ.AU>
References: <01BD88B7 DOT E1BC03F0 DOT jimen AT adtech-inc DOT com>
Mime-Version: 1.0
To: "jimen AT adtech-inc DOT com" <jimen AT adtech-inc DOT com>
Cc: "'gnu-win32 AT cygnus DOT com'" <gnu-win32 AT cygnus DOT com>

On 26-May-1998, Jimen Ching <jimen AT adtech-inc DOT com> wrote:
> I can't compile this code with b19.  Is this supposed to be allowed?
> 
> #include <stdio.h>
> FILE *xyz = stdin;
> int main() { return 0; }

No, that is not supposed to be allowed.
Your code is not strictly conforming ANSI C.
Use

	FILE *xyz;
	int main() { xyz = stdin; return 0; }

instead.

-- 
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.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request AT cygnus DOT com" with one line of text: "help".

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019