This is the mail archive of the
mailing list for the Cygwin project.
Re: strtold, isnormal
On Mon, Mar 23, 2009 at 10:49 AM, Corinna Vinschen
> On Mar 23 16:44, Corinna Vinschen wrote:
>> On Mar 23 10:40, Gregg Reynolds wrote:
>> > Hi,
>> > I'm trying to build tokyocabinet on cygwin. ÂIt needs strtold and the
>> > isnormal macro. ÂBefore I hack up an ad-hoc fix are there any plans to
>> > implement these for cygwin?
>> Not yet. ÂThe reason is that Cygwin's underlying math library (part
>> of newlib), does not handle long doubles at all so far. ÂThat's why
>> we have none of the long double functions like cosl etc.
> Oh, btw., the isnormal macro exists in math.h.
Thanks. But for some reason it's not getting picked up:
gcc -c -I. -I/usr/local/include -I/home/reynolds-gregg/include
-I/usr/local/include -DNDEBUG -D_GNU_SOURCE=1 -D_REENTRANT
-D_TC_APPLIBS="\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -lpthread
-lm -lc \"" -I/usr/include -std=c99 -Wall -fPIC -fsigned-char -O2
tcutil.c:4948: warning: implicit declaration of function `isnormal'
tcutil.o:tcutil.c:(.text+0x2889): undefined reference to `_isnormal'
If I run cpp -dDI tcutil.c it shows the macro included and substituted properly.
I can't see anything in the source that would account for this. Any
idea what's happening?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html