From owner-freebsd-current@FreeBSD.ORG Sun Mar 30 22:49:53 2003 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 620CE37B401; Sun, 30 Mar 2003 22:49:53 -0800 (PST) Received: from terry.dorm11.nctu.edu.tw (Terry.Dorm11.NCTU.edu.tw [140.113.192.99]) by mx1.FreeBSD.org (Postfix) with ESMTP id F038643F3F; Sun, 30 Mar 2003 22:49:51 -0800 (PST) (envelope-from ijliao@terry.dorm11.nctu.edu.tw) Received: by terry.dorm11.nctu.edu.tw (Postfix, from userid 1000) id A61783D0D; Mon, 31 Mar 2003 14:46:05 +0800 (CST) Date: Mon, 31 Mar 2003 14:46:05 +0800 From: Ying-Chieh Liao To: questions@FreeBSD.org Message-ID: <20030331064605.GA42030@terry.dragon2.net> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="h31gzZEtNLTqOjlF" Content-Disposition: inline X-Operating-System: FreeBSD 5.0-CURRENT i386 X-PGP-Key-Location: http://pgpkeys.mit.edu:11371/pks/lookup?op=get&search=0x11C02382 X-PGP-Key-Fingerprint: 4E98 55CC 2866 7A90 EFD7 9DA5 ACC6 0165 11C0 2382 User-Agent: Mutt/1.5.3i cc: current@FreeBSD.org Subject: isnan() with gcc 3.2.2 on FreeBSD 5.0-C X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 31 Mar 2003 06:49:54 -0000 --h31gzZEtNLTqOjlF Content-Type: text/plain; charset=us-ascii Content-Disposition: inline the following code snippet works fine with gcc 2.95.4 on RELENG_4 but failed on my -current #include #include 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["]