[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

pb compiling with gcc-2.7.2.3-3



I'm trying to compile sgml-tools and ran into the following error:
$ gcc -O -o rtf2rtf rtf2rtf.c -lfl
rtf2rtf.c:54: initializer element is not constant
rtf2rtf.c:55: initializer element is not constant

I've tracked the problem down to the following source I cannot compile:
-------cut here--------
#include <stdio.h>
FILE *out = stdout;
main()
{
  fprintf( out, "hello\n" );
}
-------cut here--------

$ gcc toto.c
toto.c:2: initializer element is not constant

I'd appreciate any help to determine where is the problem (gcc, libc, anything
else, ...).
Thanks in advance.

PS: I'm running gcc 2.7.2.3-3, libc.so.6 from ftp1.us.debian.org and
    libc6-dev 2.0.90-971126-1.

-- 
 Eric Delaunay                 | "La guerre justifie l'existence des militaires.
 delaunay@lix.polytechnique.fr | En les supprimant." Henri Jeanson (1900-1970)


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-sparc-request@lists.debian.org . 
Trouble?  e-mail to templin@bucknell.edu .


Reply to: