ARM_GCC_Support/ewl/EWL_C/src/math/lrintf.c:67: undefined reference to `fegetround'

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

ARM_GCC_Support/ewl/EWL_C/src/math/lrintf.c:67: undefined reference to `fegetround'

938 Views
bowerymarc
Contributor V

I'm trying to use lrintf() from <cmath>  and I'm getting this error:

 

C:/Freescale/CW MCU v10.5/MCU/ARM_GCC_Support/ewl/lib/armv7e-m/fpu\libm.a(lrintf.o): In function `lrintf':

ARM_GCC_Support/ewl/EWL_C/src/math/lrintf.c:67: undefined reference to `fegetround'

 

I tried adding '-lm' to the linker or not, doesn't change the outcome... any ideas what's going on?

Labels (1)
0 Kudos
0 Replies