Where is NAN Defined?

2008-02-10 Thread Jim Razmus
I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3 isinf. Still no joy. Trying to compile the program yields error: `NAN' undeclared (first use in this function).

Re: Where is NAN Defined?

2008-02-10 Thread Marc Balmer
Jim Razmus wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3 isinf. Still no joy. Trying to compile the program yields error: `NAN' undeclared (first use

Re: Where is NAN Defined?

2008-02-10 Thread Chris Kuethe
On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3 isinf. Still no joy. Trying to compile the

Re: Where is NAN Defined?

2008-02-10 Thread Floor Terra
On 2/10/08, Jim Razmus [EMAIL PROTECTED] wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3 isinf. Still no joy. Trying to compile the program yields

Re: Where is NAN Defined?

2008-02-10 Thread Jim Razmus
* Chris Kuethe [EMAIL PROTECTED] [080210 12:34]: On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3

Re: Where is NAN Defined?

2008-02-10 Thread Jim Razmus
* Marc Balmer [EMAIL PROTECTED] [080210 12:06]: Jim Razmus wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up on man 3 math and man 3 isinf. Still no joy. Trying to compile the

Re: Where is NAN Defined?

2008-02-10 Thread James
Jim Razmus wrote: * Chris Kuethe [EMAIL PROTECTED] [080210 12:34]: On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've grepped the entire source tree and read up

Re: Where is NAN Defined?

2008-02-10 Thread David Higgs
On Feb 10, 2008 12:55 PM, Jim Razmus [EMAIL PROTECTED] wrote: * Chris Kuethe [EMAIL PROTECTED] [080210 12:34]: On Feb 10, 2008 8:31 AM, Jim Razmus [EMAIL PROTECTED] wrote: I'm trying to compile a program that uses NAN. It includes math.h which I'm told C99 says should define it. I've

Re: Where is NAN Defined?

2008-02-10 Thread Woodchuck
On Sun, 10 Feb 2008, Jim Razmus wrote: I'm told that math.h should do this for me. Moreover, I think NAN is a machine dependent value. See /usr/include/i386/ieee.h for some hints. Adding the line you mention would break on VAX (assuming I understand this correctly). Although I don't

Re: Where is NAN Defined?

2008-02-10 Thread Marc Espie
There's some newer stuff we don't have yet. Partly because of vax, since it's the only non-ieee platform we support. NAN is one of these issues, and not the only one. For now, just cater around the problem by reading carefully the code, and figuring out what you can put instead of NAN.