initializer element is not constant

H.J. Lu hjl@lucon.org
Fri Jun 26 18:29:00 GMT 1998


> 
> 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)



More information about the Libc-alpha mailing list