compile-error: stdin is not a constant

From: Wolfgang Haeuptli <hidden>
Date: 1999-11-03 12:25:44

Hello people

sorry for the (probably) basic question...

Since I installed R5, some programs (that used to compile OK on R4) 
complain about : 

initializer element for 'foo' is not constant

while compiling constructs like:

FILE *foo = stdin;   (or FILE *foo = {(FILE *) stdin};  )

when I replaced this line with: FILE *foo = STDIN_FILENO; 
( defined in unistd.h), compilation works, but the resulting program
segfaults...

Any hints to make this work would be very much appreciated.

Wolfgang Haeuptli
  

** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help