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

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

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

1,428 次查看
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?

标签 (1)
0 项奖励
回复
0 回复数