about gmp-chudnovsky.c

Roberto Premoli roberto.premoli at tiscali.it
Wed Oct 1 07:44:08 UTC 2014

I see the page https://gmplib.org/pi-with-gmp.html.
I downloaded gmp-chudnovsky.c and compiled it (gcc -O3 gmp-chudnovsky.c) 
but i get a lot of errors as follow:

gmp-chudnovsky.c:(.text+0x4d): undefined reference to "__gmpf_get_prec"
gmp-chudnovsky.c:(.text+0x7f): undefined reference to "sqrt"
gmp-chudnovsky.c:(.text+0x94): undefined reference to "__gmpf_set_d"

etc etc

How to make it working?


BEWARE: you are not alllowed to use this email address for any porpuse 
(inser in DB, sell, link, spam, survey, etc) but only to reply to this 

More information about the gmp-discuss mailing list