MPFR problems

Kevin Ryde user42@zip.com.au
Tue, 08 Jul 2003 09:31:00 +1000


"Chris Saunders" <chris.saunders@sympatico.ca> writes:
>
> libmpfr.a(get_d.o) : error LNK2019: unresolved external symbol __imp___HUGE
> referenced in function _mpfr_get_d3

mingw math.h claims HUGE should be in msvcrt.dll.

> The function "mpfr_get_d3" is defined in "get_d.c". This function
> uses both "MPFR_DBL_INFP" and "MPFR_DBL_INFM".

You might be able to change them to 1.0/0.0 and -1.0/0.0 respectively,
I think gcc is happy with such expressions.

The current mpfr cvs (see www.mpfr.org) has changed to use byte
sequences for those values, you might like to try that, though you'll
need some development tools to build from cvs, eg. autoconf, automake,
texinfo.