X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=BAYES_00,SARE_MSGID_LONG40 X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: <20090323154946.GW9322@calimero.vinschen.de> References: <75cc17ac0903230840t48e206ccscf86a843fb1c3868 AT mail DOT gmail DOT com> <20090323154439 DOT GV9322 AT calimero DOT vinschen DOT de> <20090323154946 DOT GW9322 AT calimero DOT vinschen DOT de> Date: Mon, 23 Mar 2009 15:05:13 -0500 Message-ID: <75cc17ac0903231305yb0ec066kefddbb24fdbcd986@mail.gmail.com> Subject: Re: strtold, isnormal From: Gregg Reynolds To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com 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. =C2=A0It needs strtold and= the >> > isnormal macro. =C2=A0Before I hack up an ad-hoc fix are there any pla= ns to >> > implement these for cygwin? >> >> Not yet. =C2=A0The reason is that Cygwin's underlying math library (part >> of newlib), does not handle long doubles at all so far. =C2=A0That'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=3D1 -D_REENTRANT -D__EXTENSIONS__ -D_TC_PREFIX=3D"\"/usr/local\"" -D_TC_INCLUDEDIR=3D"\"/usr/local/include\"" -D_TC_LIBDIR=3D"\"/usr/local/lib\"" -D_TC_BINDIR=3D"\"/usr/local/bin\"" -D_TC_LIBEXECDIR=3D"\"/usr/local/libexec\"" -D_TC_APPINC=3D"\"-I/usr/local/include\"" -D_TC_APPLIBS=3D"\"-L/usr/local/lib -ltokyocabinet -lbz2 -lz -lpthread -lm -lc \"" -I/usr/include -std=3Dc99 -Wall -fPIC -fsigned-char -O2 tcutil.c result: 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 prop= erly. 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 Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/