471,319 Members | 1,610 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,319 software developers and data experts.



I am using Borland c++ builder version 6.0 and when I compile a program containing isinf() (I did include math.h) I get 'call to undefined function isinf'.

Anyone knows what is wrong?

Jul 16 '07 #1
3 3027
256 100+
Just a guess, but maybe you need to tell your compiler to link the math library? (I use gnu c so I would tell my compiler '-lm' but your compiler might be different)
Jul 16 '07 #2
4,677 Expert Mod 4TB
From what I saw, there are lots of issues with different versions of C/C++ not allowing access to those functions. Haven't seen a fix, though...
Jul 16 '07 #3
11,448 Expert 8TB
Have a look at the frexp() function; it splits a floating point number in the
mantissa (aka significant) an exponent. If the mantissa is zero and the exponent
has its maximum value (from the top of my head: 2047) the value is +- infinite.
You can determine the sign by checking the sign bit of the floating point number.

Also: google is your friend.

kind regards,

Jul 16 '07 #4

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

61 posts views Thread by norb1 | last post: by
2 posts views Thread by Priya | last post: by
10 posts views Thread by zl2k | last post: by
12 posts views Thread by horacius.rex | last post: by
16 posts views Thread by istillshine | last post: by
9 posts views Thread by void main | last post: by
9 posts views Thread by Richard Tobin | last post: by
3 posts views Thread by MM | last post: by
8 posts views Thread by john.goodleaf | last post: by
reply views Thread by rosydwin | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.