long double versions of functions in gcc under Cygwin
- From: "lcw1964" <leslie.wright@xxxxxxxxxxxxx>
- Date: 7 Aug 2006 16:33:32 -0700
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 ;)
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:
- Re: long double versions of functions in gcc under Cygwin
- From: pete
- Re: long double versions of functions in gcc under Cygwin
- From: Dann Corbit
- Re: long double versions of functions in gcc under Cygwin
- From: Keith Thompson
- Re: long double versions of functions in gcc under Cygwin
- Prev by Date: Re: calloc()
- Next by Date: Re: Confused by a c-faq example
- Previous by thread: calloc()
- Next by thread: Re: long double versions of functions in gcc under Cygwin
- Index(es):
Relevant Pages
|