EPICS Controls Argonne National Laboratory

Experimental Physics and
Industrial Control System

2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024  Index 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
<== Date ==> <== Thread ==>

Subject: Re: isfinite() on Linux
From: Michael Davidsaver <[email protected]>
To: [email protected]
Date: Tue, 22 Jul 2014 10:30:39 -0400
Relevant feature macros defined for our 3.14.12 build (unchanged I think)

> -D_POSIX_C_SOURCE=199506L -D_POSIX_THREADS -D_XOPEN_SOURCE=500 -D_BSD_SOURCE

From the linux manpage on isfinite()

> fpclassify(), isfinite(), isnormal():
>            _XOPEN_SOURCE >= 600 || _ISOC99_SOURCE || _POSIX_C_SOURCE >= 200112L;
>            or cc -std=c99

These conditions are not met.

I'd certainly support modernizing in any of these three areas (POSIX,
XOPEN, or even C99), but I'm sure this will draw the usual complains
from vx55 users (and MS users for C99).


On 07/22/2014 05:45 AM, Ralph Lange wrote:
> All,
> 
> Working on a patch for Base I am having trouble trying to use isfinite() 
> on Linux (gcc 4.9.0) - isinf() and isnan() work fine, but isfinite() 
> gets me an "implicit declaration" warning and a missing symbol when linking.
> 
> Any ideas? All these macros should be POSIX and defined in math.h, right?
> 
> Thanks a lot,
> ~Ralph
> 


Attachment: signature.asc
Description: OpenPGP digital signature


References:
isfinite() on Linux Ralph Lange

Navigate by Date:
Prev: isfinite() on Linux Ralph Lange
Next: Re: isfinite() on Linux Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
Navigate by Thread:
Prev: isfinite() on Linux Ralph Lange
Next: Re: isfinite() on Linux Andrew Johnson
Index: 2002  2003  2004  2005  2006  2007  2008  2009  2010  2011  2012  2013  <20142015  2016  2017  2018  2019  2020  2021  2022  2023  2024 
ANJ, 22 Jul 2014 Valid HTML 4.01! · Home · News · About · Base · Modules · Extensions · Distributions · Download ·
· Search · EPICS V4 · IRMIS · Talk · Bugs · Documents · Links · Licensing ·