initializer element is not constant

Sisyphus kalinabears@iinet.net.au
Thu Jul 24 09:17:00 GMT 2003


Hi,

>From another list:
-------start quote---------
> GMP.xs: In function `XS_GMP__Mpz_overload_add':
> GMP.xs:1229: initializer element is not constant
> GMP.xs:1229: (near initialization for `table[0].op')

Hmm, yep, DLL imported functions don't work in initializers.
------end quote---------

I'm using gcc (version 2.95.2) on win32 to try to build the GMP (perl)
module that ships with GMP source.
It occurs to me that, perhaps, in more recent versions of 'gcc', things may
have changed to the extent that DLL imported functions will work in
initializers. Is that the case ?

Cheers,
Rob



More information about the Gcc-help mailing list