This is the mail archive of the
libc-alpha@cygnus.com
mailing list for the glibc project.
initializer element is not constant
- To: libc-alpha@cygnus.com
- Subject: initializer element is not constant
- From: Matt McLean <keys@brio.yikes.com>
- Date: Fri, 26 Jun 1998 17:12:55 -0700 (PDT)
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?
matt.