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?