public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Wesley Smith <wesley.hoke@gmail.com>
To: gcc-help@gcc.gnu.org
Subject: cmath, math.h, and isnan
Date: Mon, 23 May 2005 15:32:00 -0000	[thread overview]
Message-ID: <1079b0505052308322fb0ebc6@mail.gmail.com> (raw)

Hi,

I'm trying to compile some image processing software that uses isnan. 
I'm using gcc 3.3 on os x, so (as was pointed out earlier) the c99
extensions aren't in c++ yet.  Thus, when I include on cmath I get a
'isnan' undeclared error.  The same goes for when I include both cmath
and math.h.  When I just include math.h however isnan is defined and I
can compile.

In compiling this software, I need to somehow figure out how to use
both the isnan from math.h and cmath for the other functions defined
there in the same header file but not have them conflict.  Are there
any compiler settings of macros that can be used to do this?

thanks,
wes

             reply	other threads:[~2005-05-23 15:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-23 15:32 Wesley Smith [this message]
2005-05-23 15:35 ` Bob Rossi

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=1079b0505052308322fb0ebc6@mail.gmail.com \
    --to=wesley.hoke@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).