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
<2014>
2015
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
<2014>
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
|