Subject: Re: quick question to C programmers
To: Georg Schwarz <georg.schwarz@freenet.de>
From: sigsegv <sigsegv@rambler.ru>
List: tech-pkg
Date: 04/07/2005 15:54:52
On Thu, 7 Apr 2005 15:32:05 +0200
georg.schwarz@freenet.de (Georg Schwarz) wrote:
> I am trying to compile x11/Xaw-Xpm using gcc 2.95. It fails like this:
>
> laylex.c:45: initializer element is not constant
> laylex.c:45: (near initialization for `LayYYin')
> laylex.c:45: initializer element is not constant
> laylex.c:45: (near initialization for `LayYYout')
>
> The respective line looks like this:
>
> FILE *LayYYin = {stdin}, *LayYYout = {stdout};
>
> What are the brackets for?
> Does anyone know why it fails? The two variables seem to be defined
> globally in that line. Why aren't stdin and stdout considered constants?
>
> --
> Georg Schwarz http://home.pages.de/~schwarz/
> georg.schwarz@freenet.de +49 178 8545053
I don't think brackets are needed, stdin and stdout are both pointers to FILE