gnu-misc-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: GMP precision problem - only getting 15 places of PI


From: nmenuj
Subject: Re: GMP precision problem - only getting 15 places of PI
Date: 20 Sep 2005 22:23:46 -0700
User-agent: G2/0.2

I hadn't heard of the Collatz sequence before, and read up a little on
it today. Also saw some of your correspondence on sci.math.

About the linker problem with g++ on Cygwin, I have run into it several
times, and have discovered that re-ordering your libraries works
sometimes. For example, on my system,

g++ -lgmp -lgmpxx pi.cpp
generates large numbers of "undefined reference" errors, but the
following works just fine:

g++ pi.cpp -lgmp -lgmpxx

(i.e., put the source file name before the libraries). No idea why it
works, though.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]