This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: Compiler bug?
- To: "jimen at adtech-inc dot com" <jimen at adtech-inc dot com>
- Subject: Re: Compiler bug?
- From: Fergus Henderson <fjh at cs dot mu dot OZ dot AU>
- Date: Thu, 28 May 1998 10:22:11 +1000
- Cc: "'gnu-win32 at cygnus dot com'" <gnu-win32 at cygnus dot com>
- References: <01BD88B7.E1BC03F0.jimen@adtech-inc.com>
On 26-May-1998, Jimen Ching <jimen@adtech-inc.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@cs.mu.oz.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@128.250.37.3 | -- the last words of T. S. Garp.
-
For help on using this list (especially unsubscribing), send a message to
"gnu-win32-request@cygnus.com" with one line of text: "help".