help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: isnan problem on OSX


From: Jaroslav Hajek
Subject: Re: isnan problem on OSX
Date: Wed, 24 Mar 2010 07:20:03 +0100

On Tue, Mar 23, 2010 at 11:56 PM, Kári Davíðsson
<address@hidden> wrote:
> Hello,
>
> I am trying to install optim package. There are compile errors regarding
> isnan() which is actually
> a macro on the Mac OS X.
> I have tried to include math.h directly as well as lo-ieee.h from the file
> __bfgsmin.cc
>
> I have already forced the compile to use the 32 bit compiler, with the -m32
> added to the compiler flags in
> the file Octave.app/Contents/Resources/bin/mkoctfile-3.2.3
>
> This is on Snow Leopard, 10.6.2 with XCode 3.2.1.
> Octave is 3.2.3 and optim is 1.0.12.
>
> Any pointers?
>
> The build error follows.
>
> thanks
> kd
>

Use xisnan, declared in lo-mappers.h. This is the best approach as it
will map to std::isnan if available.



-- 
RNDr. Jaroslav Hajek, PhD
computing expert & GNU Octave developer
Aeronautical Research and Test Institute (VZLU)
Prague, Czech Republic
url: www.highegg.matfyz.cz



reply via email to

[Prev in Thread] Current Thread [Next in Thread]