compile-error: stdin is not a constant
Wolfgang Haeuptli
whaeuptli at bluewin.ch
Wed Nov 3 23:25:44 EST 1999
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/
More information about the Linuxppc-dev
mailing list