out-dated gmp-chudnovsky.c ing gmp 5.0.2

Amir Hooshangi amirhoshangi at gmail.com
Wed Jan 18 17:56:04 CET 2012


Hi

thanks, problem solved.

regards

On Wed, Jan 18, 2012 at 8:11 PM, Marc Glisse <marc.glisse at inria.fr> wrote:

> 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 <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