Subject: quick question to C programmers
To: None <tech-pkg@netbsd.org>
From: Georg Schwarz <georg.schwarz@freenet.de>
List: tech-pkg
Date: 04/07/2005 15:32:05
I am trying to compile x11/Xaw-Xpm using gcc 2.95. It fails like this:

laylex.c:45: initializer element is not constant
laylex.c:45: (near initialization for `LayYYin')
laylex.c:45: initializer element is not constant
laylex.c:45: (near initialization for `LayYYout')

The respective line looks like this:

FILE *LayYYin = {stdin}, *LayYYout = {stdout};

What are the brackets for?
Does anyone know why it fails? The two variables seem to be defined
globally in that line. Why aren't stdin and stdout considered constants?

-- 
Georg Schwarz    http://home.pages.de/~schwarz/
 georg.schwarz@freenet.de     +49 178 8545053