Strange behavior of mpf_inp_str

Paul Zimmermann Paul.Zimmermann at loria.fr
Sun Feb 21 13:04:27 CET 2010


       Ron,

there were several issues with mpf_set_str and mpf_inp_str in previous GMP
releases. See http://gmplib.org/oldrel/. Please make sure you are using
GMP 5.0.1. To check that, compile and run the following program with the
same compiler command as the program giving the strange behaviour (or even
better include this in your program):

#include "gmp.h"
int
main()
{
  printf ("GMP library: %s\n", gmp_version);
  printf ("GMP include: %d.%d.%d\n", __GNU_MP_VERSION, __GNU_MP_VERSION_MINOR,
          __GNU_MP_VERSION_PATCHLEVEL);
}

Paul


More information about the gmp-bugs mailing list