This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: `initializer element is not constant' issue


Aiee :)

   Hello!

On Wed, Aug 22, 2001 at 04:29:48AM -0300, Alexandre Oliva wrote:
> >    `initializer element is not constant' error from the compiler.
> 
> >    Is there a way to work around this, please? [1]
> 
> I'm afraid initializers of global variables cannot contain function
> calls in C.

   Hep, as I supposed :) ...
   Is this either a standard or just a not-implemented
   feature by gcc?
   
   Do you have any advice about doing something like that?

   I need to initialize global vars while filling some table,
   but I don't want to fill this table within function call ...

   Is it definetly just impossible?

bye bye && thanks!

                     -- gg sullivan

-- 
Lorenzo Cavallaro	`Gigi Sullivan' <sullivan@sikurezza.org>

Until I loved, life had no beauty;
I did not know I lived until I had loved. (Theodor Korner)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]