This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
Re: initializer element is not constant
- To: keys@brio.yikes.com (Matt McLean)
- Subject: Re: initializer element is not constant
- From: hjl@lucon.org (H.J. Lu)
- Date: Fri, 26 Jun 1998 18:28:59 -0700 (PDT)
- Cc: libc-alpha@cygnus.com
>
> since glibc 2.1, file pointers to things like stdin, stdout, stderr, etc.
> don't seem to work anymore (in some situations).
>
> for example, in ash (mknodes.c:92) there is the line:
>
> FILE *infp = stdin;
>
> and the gcc error is:
>
> mknodes.c:92: initializer element is not constant
>
> to fix it, ive just changed all the infp usages to stdin. but what's the
> real fix?
>
FILE *infp;
main ()
{
infp = stdin;
}
--
H.J. Lu (hjl@gnu.org)