public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: hiroshi.fujishima@gmail.com
To: gcc-help@gcc.gnu.org
Subject: isinfo
Date: Sun, 10 Jul 2005 11:00:00 -0000	[thread overview]
Message-ID: <7coe9b6i4l.fsf@gmail.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 537 bytes --]

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)


[-- Attachment #2: a.c --]
[-- Type: application/octet-stream, Size: 63 bytes --]

int
main (void)
{
  double f = 0.0;
  isinf (f);
  return 0;
}

[-- Attachment #3: b.c --]
[-- Type: application/octet-stream, Size: 238 bytes --]

#include <stdio.h>

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;
}

[-- Attachment #4: Type: text/plain, Size: 23 bytes --]


-- 
Hiroshi Fujishima

                 reply	other threads:[~2005-07-10 11:00 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7coe9b6i4l.fsf@gmail.com \
    --to=hiroshi.fujishima@gmail.com \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).