LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-26-2011, 05:44 AM   #1
shamjs
Member
 
Registered: Sep 2011
Posts: 93

Rep: Reputation: Disabled
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.
 
Old 09-26-2011, 10:44 PM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 05:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration