This is the mail archive of the libc-hacker@sourceware.cygnus.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: initializer element is not constant


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]