bug-glibc
[Top][All Lists]
Advanced

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

Re: Problem


From: Lothar Esser
Subject: Re: Problem
Date: Thu, 26 Oct 2000 09:02:18 -0500 (CDT)



Hi, 


> What problem exactly?  Did you read the FAQ?  You can find it in the
> source package of glibc or via http://sources.redhat.com/glibc, check
> especially FAQ 3.9.


>  > #include <stdio.h>
>  > #include <stdlib.h>
> 
> 
>  > FILE *of = stdout;
> 
>  > int main () {
>  >   fprintf (of, "Hello world \n");
> 
>  > }
> 
   
 The problem is this: ( gcc c.c ): 

c.c:5: initializer element is not constant 

It seems that gcc does not like 

FILE *of = stdout; 

with "of" as global variable. g++ does not complain about this and
produces executable code. 

I have not checked the FAQ - still have to find it on the web. 

Thanks for the reply anyway.

 Lothar Esser




reply via email to

[Prev in Thread] Current Thread [Next in Thread]