Unable to use round function

キャンセル
次の結果を表示 
表示  限定  | 次の代わりに検索 
もしかして: 

Unable to use round function

ソリューションへジャンプ
557件の閲覧回数
DemaQasem
Contributor II

Hello,

I am implementing a project on S32K144 using the S32DS IDE v3.4, when I use the "round" function and build the project I get the error  : 

DemaQasem_0-1707044718193.png

 

even though I made sure to include the math.h library
any reason for that  ?

Thank you.

タグ(2)
0 件の賞賛
返信
1 解決策
528件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

math.h is only header file for math library. You need to add libm.a library into your project in project properties: 

jiri_kral_0-1707130775057.png

 

元の投稿で解決策を見る

0 件の賞賛
返信
2 返答(返信)
529件の閲覧回数
jiri_kral
NXP Employee
NXP Employee

Hi, 

math.h is only header file for math library. You need to add libm.a library into your project in project properties: 

jiri_kral_0-1707130775057.png

 

0 件の賞賛
返信
495件の閲覧回数
DemaQasem
Contributor II
thank you so much ! it worked.
0 件の賞賛
返信