isnan() with gcc 3.2.2 on FreeBSD 5.0-C

Ying-Chieh Liao ijliao at FreeBSD.org
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

<code>
#include <iostream>
#include <cmath>

using namespace std;

int main(void)
{
    cout << isnan(1.0) << endl;
    return 0;
}
</code>

<err>
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.)
</err>

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 : http://lists.freebsd.org/pipermail/freebsd-questions/attachments/20030331/426eb9f0/attachment.bin


More information about the freebsd-questions mailing list