From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fa528,b0f7f17e372ff3b1,start X-Google-Attributes: gidfa528,public X-Google-ArrivalTime: 2001-04-16 08:17:25 PST Path: supernews.google.com!sn-xit-02!supernews.com!news.gv.tsc.tdk.com!hub.org!hub.org!newsfeed.wirehub.nl!news.maxwell.syr.edu!news.xnet.com!not-for-mail From: Douglas Carmichael Newsgroups: comp.unix.tru64 Subject: How do I generate a NaN value at compile time? Date: Mon, 16 Apr 2001 15:10:36 +0000 (UTC) Organization: XNet Information Systems (Winstar) Sender: Douglas Carmichael Message-ID: <9bf21c$5rc$1@flood.xnet.com> NNTP-Posting-Host: typhoon.xnet.com X-Trace: flood.xnet.com 987433836 5996 198.147.221.66 (16 Apr 2001 15:10:36 GMT) X-Complaints-To: abuse@xnet.com NNTP-Posting-Date: Mon, 16 Apr 2001 15:10:36 +0000 (UTC) User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (SunOS/5.7 (sun4u)) Xref: supernews.google.com comp.unix.tru64:2135 I'm trying to compile PostgreSQL v7.1 on Tru64 v5.0A/rev 1094 with Compaq C T6.4-212 (dtk), and the compiler is complaining about not being able to generate a NaN value at compile time: cc -std -O4 -Olimit 2000 -I../../../../src/include -c -o float.o float.c cc: Error: float.c, line 251: In this statement, the libraries on this platform do not yet support compile-time evaluation of the constant expression "0.0/0.0". (constfoldns) val = NAN; ------------------------------^ However, the code needs a NaN value. How do I generate a NaN value at compile time? Please reply by email to dcarmich@ourservers.net.