Unable to use round function

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

Unable to use round function

Jump to solution
555 Views
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.

Tags (2)
0 Kudos
Reply
1 Solution
526 Views
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

 

View solution in original post

0 Kudos
Reply
2 Replies
527 Views
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 Kudos
Reply
493 Views
DemaQasem
Contributor II
thank you so much ! it worked.
0 Kudos
Reply