[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"

Henrik Bach henrik_bach_llvm at hotmail.com
Sun Jul 18 18:25:50 PDT 2004


Hi Brian,

I've been playing around with your test programs and came to the result:

---------------------
#ifdef __INTERIX
# define _GLIBCPP_USE_C99 1 //Define this macro before including isnan() 
function from cmath
#endif

#include <cmath>
using std::isnan;
int foo(float f) {return isnan(f);}
---------------------

/Henrik



>From: "Brian R. Gaeke" <gaeke at uiuc.edu>
>Reply-To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
>To: LLVM Developers Mailing List <llvmdev at cs.uiuc.edu>
>Subject: Re: [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get 
>isnan()"
>Date: Sun, 18 Jul 2004 17:32:23 -0500
>
>
>Hi,
>
>I'm not exactly sure what's going on here. You mentioned in your
>earlier message that isnan() is declared in <cmath>, but from looking
>at your config.log, the check for isnan() in <cmath> that the
>configure script runs appears to be failing. Can you check whether
>either of the test programs actually compiles?
>
>/* first test program: is isnan() declared in <cmath>? */
>#include <cmath>
>int foo(float f) {return isnan(f);}
>
>/* second test program: is std::isnan() declared in <cmath>? */
>#include <cmath>
>using std::isnan;
>int foo(float f) {return isnan(f);}
>
>If not, perhaps there is a bug in the configure script's check.  If
>you can play around with one of the above test programs and get
>make the int foo(float f) function to compile on Interix, let me
>know how you did it, and I can fix the test.
>
>-Brian
>
>_______________________________________________
>LLVM Developers mailing list
>LLVMdev at cs.uiuc.edu         http://llvm.cs.uiuc.edu
>http://mail.cs.uiuc.edu/mailman/listinfo/llvmdev

_________________________________________________________________
Få alle de nye og sjove ikoner med MSN Messenger http://www.msn.dk/messenger




More information about the llvm-dev mailing list