MPFR version info

Patrick Pelissier Patrick.Pelissier at loria.fr
Mon Jul 12 16:47:33 CEST 2004


> I've written a perl interface to MPFR and was thinking that if the 
> version number was accessible (at run-time) I'd include a perl function 
> that returns it. I think it can wait until 'mpf_version()' makes it into 
> the "current stable release".
 Ok.
 
> Having the same info at compile-time would also be handy. If you try and 
> build the perl interface against an older version of MPFR you'll 
> possibly get compilation errors. In such cases it would be better to 
> have the build process terminate with a message that a later version of 
> MPFR was required, rather than have the process die with "undefined 
> references" or whatever. Once again, I'll wait until the macro makes it 
> into the current stable release. (I haven't actually checked the 
> backward compatibility issue. Seems to me that there are possibly issues 
> with '__gmpfr_default_rounding_mode' for one, which, I think might have 
> had a different name until fairly recently .... but, like I say, I 
> haven't checked)
 Don't use undocumented feature :)
 The CVS version has also mpfr_get_default_rounding_mode ().

 Sincerely,
  Patrick Pelissier


More information about the gmp-discuss mailing list