Question about __gmpf_abs and __gmpz_legendre compilation

Kevin Ryde user42 at
Mon May 17 00:37:58 CEST 2004

"delta trinity" <deltatrinity at> writes:
> It may be IMPLIB, but is it possible that something is different in
> GMP about those two functions?

There's nothing special about __gmpf_abs, it's in mpf/abs.c and has a
declspec in gmp.h like every other libgmp function.

__gmpz_legendre is only in compat.c, and I think it doesn't have an
actual declspec, so it's possible that makes a difference.  But I
thought the export directive doesn't really matter, since libtool
exports all globals (by default), rather than paying attention to what
is marked for export.

I'm pretty sure libtool is meant to setup its dlls "by-name", since it
doesn't do anything about ensuring ordinals remain the same across new
(upwardly compatible) versions of a package.

All followups to gmp-bugs at please.

More information about the gmp-bugs mailing list