From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21168 invoked by alias); 10 Jul 2005 11:00:21 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 21154 invoked by uid 22791); 10 Jul 2005 11:00:16 -0000 Received: from wproxy.gmail.com (HELO wproxy.gmail.com) (64.233.184.199) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Sun, 10 Jul 2005 11:00:16 +0000 Received: by wproxy.gmail.com with SMTP id 37so182793wra for ; Sun, 10 Jul 2005 04:00:15 -0700 (PDT) Received: by 10.54.25.38 with SMTP id 38mr2982352wry; Sun, 10 Jul 2005 04:00:14 -0700 (PDT) Received: from alex.nature.tsukuba.ac.jp ([130.158.38.234]) by mx.gmail.com with ESMTP id g2sm2421115wra.2005.07.10.04.00.13; Sun, 10 Jul 2005 04:00:14 -0700 (PDT) From: hiroshi.fujishima@gmail.com To: gcc-help@gcc.gnu.org Subject: isinfo Date: Sun, 10 Jul 2005 11:00:00 -0000 Message-ID: <7coe9b6i4l.fsf@gmail.com> User-Agent: Gnus/5.110004 (No Gnus v0.4) Emacs/22.0.50 (usg-unix-v) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" X-SW-Source: 2005-07/txt/msg00105.txt.bz2 --=-=-= Content-length: 537 Hi, Why does the compilation of b.c fail, while that of a.c succeeds? % gcc a.c % gcc b.c Undefined first referenced symbol in file isinf /tmp/ccSOxuGb.o ld: fatal: Symbol referencing errors. No output written to a.out collect2: ld returned 1 exit status Here is my enviroment: % gcc -v Using built-in specs. Target: sparc-sun-solaris2.9 Configured with: ../gcc/configure --disable-nls --with-gmp=/usr/local --with-mpfr=/usr/local Thread model: posix gcc version 4.0.2 20050707 (prerelease) --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=a.c Content-length: 63 int main (void) { double f = 0.0; isinf (f); return 0; } --=-=-= Content-Type: application/octet-stream Content-Disposition: attachment; filename=b.c Content-length: 238 #include int main (void) { double f = 0.0; if (!isinf (f)) { printf ("not isinf(oo) ... "); return 1; } if (!isinf (-f)) { printf ("not isinf(-oo) ... "); return 1; } return 0; } --=-=-= Content-length: 23 -- Hiroshi Fujishima --=-=-=--