From: Douglas Carmichael <dcarmich@ourservers.net>
Subject: How do I generate a NaN value at compile time?
Date: Mon, 16 Apr 2001 15:10:36 +0000 (UTC) [thread overview]
Message-ID: <9bf21c$5rc$1@flood.xnet.com> (raw)
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.
next reply other threads:[~2001-04-16 15:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-04-16 15:10 Douglas Carmichael [this message]
2001-04-23 1:01 ` How do I generate a NaN value at compile time? Mark Garrett
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox