isnan() with gcc 3.2.2 on FreeBSD 5.0-C

Ying-Chieh Liao ijliao at
Sun Mar 30 22:49:55 PST 2003

the following code snippet works fine with gcc 2.95.4 on RELENG_4
but failed on my -current

#include <iostream>
#include <cmath>

using namespace std;

int main(void)
    cout << isnan(1.0) << endl;
    return 0;

test.cpp: In function `int main()':
test.cpp:8: `isnan' undeclared (first use this function)
test.cpp:8: (Each undeclared identifier is reported only once for each function
   it appears in.)

what's wrong with my system ? or what can I do for it ?
int i;main(){for(;i["]<i;++i){--i;}"];read('-'-'-',i+++"hell\
o, world!\n",'/'/'/'));}read(j,i,p){write(j/p+p,i---j,i/i);}
					-- IOCCC 1984
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url :

More information about the freebsd-questions mailing list