out-dated gmp-chudnovsky.c ing gmp 5.0.2

Marc Glisse marc.glisse at inria.fr
Wed Jan 18 17:41:33 CET 2012


On Wed, 18 Jan 2012, Amir Hooshangi wrote:

> i want to try gmp-chudnovsky.c which hosted on
> http://gmplib.org/pi-with-gmp.html. but i get undefined reference to `sqrt'
> while compiling.
> i'm using gmp version 5.0.2. i think the code is out dated.

Hmm, let's google for "undefined reference to sqrt".
Yes, they do all give the same answer: -lm (link with the math library).

-- 
Marc Glisse


More information about the gmp-discuss mailing list