[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: cquad.cc compilation error: INFINITY undefined
From: |
Michael Goffioul |
Subject: |
Re: cquad.cc compilation error: INFINITY undefined |
Date: |
Wed, 3 Nov 2010 06:52:52 +0000 |
On Tue, Nov 2, 2010 at 11:15 PM, John W. Eaton <address@hidden> wrote:
> On 2-Nov-2010, Michael Goffioul wrote:
>
> | I reached a compilation error with MSVC in cquad.cc, because INFINITY is
> | not defined. Looking on the web, it seems that something like
> |
> | #ifndef INFINITY
> | #define INFINITY octave_Float_Inf
> | #endif
> |
> | Could anybody confirm this is functionally equivalent?
>
> Yes, except that I don't see any float values in cquad, only doubles
> so I think you want octave_Inf, not octave_Float_Inf.
Well, I selected octave_Float_Inf because after looking on the web
it appeared that INFINITY is supposed to be of type float. As I wanted
something equivalent, I used octave_Float_Inf.
Michael.