Henrik Bach
2004-Jul-19 01:25 UTC
[LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
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
Seemingly Similar Threads
- [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
- [LLVMdev] IsNAN.cpp:23:3: #error "Don't know how to get isnan()"
- [LLVMdev] CommandLine.cpp:189: error: `strdup' undeclared
- [LLVMdev] Visual C Patches for IsNAN.cpp and IsInf.cpp
- [LLVMdev] CommandLine.cpp:189: error: `strdup' undeclared