Inaccurate/inconsistent output from mpf_out_str
Yihang Ho
hoyihang5 at gmail.com
Fri Oct 30 01:08:24 UTC 2015
Hi Marco,
Statically linking the library as you showed works nicely. But why does the
first version says version 6.0.0? (I sudo make install after compiling.)
Yihang
On Fri, Oct 30, 2015 at 4:06 AM Marco Bodrato <bodrato at mail.dm.unipi.it>
wrote:
> Ciao,
>
> Il Gio, 29 Ottobre 2015 6:05 pm, Yihang Ho ha scritto:
> > Not sure if I compiled the RC correctly, but I am still seeing the same
> > results.
>
> If "make check" did not fail, it was correctly compiled. Are you using for
> your test? I added a line at the beginning of your code:
> printf("%s\n",gmp_version);
>
> I get:
>
> $ g++ sample.cpp -lgmp && ./a.out
> 6.0.0
> 0.2628983284e208987640249978734
> 0.2628978818679220467407506489160042807743550216147e208987640249978734
> ....
>
> $ g++ sample.cpp .libs/libgmp.a && ./a.out
> 6.0.99
> 0.2628978819e208987640249978734
> 0.26289788186792204674075064891600428077435502009263e208987640249978734
> ....
>
> (the second instance is statically linked with the compiled, but not
> installed, library, and it prints 6.0.99 for the version)
>
> Regards,
> m
>
> --
> http://bodrato.it/papers/
>
>
More information about the gmp-bugs
mailing list