linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* compile-error: stdin is not a constant
@ 1999-11-03 12:25 Wolfgang Haeuptli
  1999-11-03 15:36 ` Daniel Jacobowitz
  0 siblings, 1 reply; 4+ messages in thread
From: Wolfgang Haeuptli @ 1999-11-03 12:25 UTC (permalink / raw)
  To: linuxppc-dev


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/

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1999-11-03 17:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-11-03 12:25 compile-error: stdin is not a constant Wolfgang Haeuptli
1999-11-03 15:36 ` Daniel Jacobowitz
1999-11-03 17:53   ` Martin Costabel
1999-11-03 16:59     ` Daniel Jacobowitz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).