LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   cant able to use _fpclass (https://www.linuxquestions.org/questions/programming-9/cant-able-to-use-_fpclass-905042/)

shamjs 09-26-2011 05:44 AM

cant able to use _fpclass
 
Hi, all
i have a code that uses _fpclass function,this code is working fine on windows but it fails to work under linux and it reports the following error when i compile with linux (gcc)..
â_fpclassâ was not declared in this scope

is there any alternate function to be used on linux ?and i need to work this code on both windows as well as linux
please guide me in resolving this issue.

paulsm4 09-26-2011 10:44 PM

Hi -

Quote:

I have a code that uses _fpclass function,this code is working fine on windows but it fails to work under linux...
That's because "_fpclass" is a Windows function :)

These links might help:

http://www.linuxquestions.org/questi...x-help-800464/

http://www.johndcook.com/IEEE_exceptions_in_cpp.html
<= Search for "fp_class_d", toward the bottom

... and, perhaps most useful ...

http://www.linuxperts.org/manual/linux/fpclassify/3

'Hope that helps .. PSM


All times are GMT -5. The time now is 07:51 PM.