GMP Module (perl)
Thu, 24 Jul 2003 11:25:48 +1000
"Sisyphus" <email@example.com> writes:
> GMP.xs: In function `XS_GMP__Mpz_overload_add':
> GMP.xs:1229: initializer element is not constant
> GMP.xs:1229: (near initialization for `table.op')
Hmm, yep, DLL imported functions don't work in initializers. It'd be
nice if gcc could do something to help that, since of course it's a
fairly general problem.
You might get more joy from a static build of gmp, or maybe it'd work
to compile the generated GMP.c as C++ instead of C.