This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
initializer element is not constant
- From: "Sisyphus" <kalinabears at iinet dot net dot au>
- To: "gcc" <gcc-help at gcc dot gnu dot org>
- Date: Thu, 24 Jul 2003 17:00:32 +1000
- Subject: initializer element is not constant
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