GMP 5.1.1 make check fail on Solaris 11
tg at gmplib.org
Sun Feb 17 16:57:36 CET 2013
Marc Glisse <marc.glisse at inria.fr> writes:
On Sun, 17 Feb 2013, ken mays wrote:
> 1. patched gmp-5.1.1/tests/cxx/t-ops2.cc, change #include <cmath> to
> #include <math.h>
Ah, the issue wasn't about linking but about declarations (it helps if
you can show the exact error messages and your patches instead of
descriptions so we don't misinterpret your emails). Well, the -lm I
added shouldn't hurt. Now I see: floor was in C89, but trunc is C99
and thus wasn't in C++98, so Solaris' strict cmath header doesn't
provide it. I'll switch to math.h.
Perhaps this is not relevant: we don't yet require C99.
More information about the gmp-bugs