Re: long double versions of functions in gcc under Cygwin
- From: "Dann Corbit" <dcorbit@xxxxxxxxx>
- Date: Mon, 7 Aug 2006 19:38:14 -0700
"lcw1964" <leslie.wright@xxxxxxxxxxxxx> wrote in message
news:1154993612.205886.303300@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Greetings, all,
I am trying to port a little bit of math code to gcc, that in the
original version used the long double version of several functions (in
particular, atanl, fabsl, and expl).
I get a complie-time "unidentified reference" error to the expl()
calls, but gcc seems to digest atanl and fabsl just fine. Changing expl
to exp cures the compile time problem, but I get at best double
precision in the final results. I am assuming that the use of exp() vs.
expl() is the weak link.
The GCC documentation seems to imply that expl() is supported, but I
have no idea where to find it or how to link it in properly. For that
matter, I can't seem to find prototypes in math.h for fabsl or atanl,
and they don't make gcc cough at all.
I hope this tenderfoot can find some direction, or I may resort to
singing the praises of the egregiously un-portable lcc-win32 with its
impressive 100+ digit precision qfloat library ;)
The qfloat library is by S. Moshier. You can find qfloat along with the
Cephes collection (which has tons of long double math functions) here:
http://www.moshier.net/#Cephes
cheers,
Les
p.s. I am trying to keep this simple, so if there is a solution within
the main gcc offerings without me having to turn to the GSL, I would
like to try that first.
.
- Follow-Ups:
- References:
- long double versions of functions in gcc under Cygwin
- From: lcw1964
- long double versions of functions in gcc under Cygwin
- Prev by Date: Re: Is it possible to finding all return values of a C/C++ function?
- Next by Date: Re: Is it possible to finding all return values of a C/C++ function?
- Previous by thread: Re: long double versions of functions in gcc under Cygwin
- Next by thread: Re: long double versions of functions in gcc under Cygwin
- Index(es):
Relevant Pages
|