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,429件の閲覧回数
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 返答(返信)