This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: strtold, isnormal

On Mon, Mar 23, 2009 at 10:49 AM, Corinna Vinschen
<> wrote:
> 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__EXTENSIONS__ -D_TC_PREFIX="\"/usr/local\""
-D_TC_LIBDIR="\"/usr/local/lib\"" -D_TC_BINDIR="\"/usr/local/bin\""
-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'

and then

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:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]