S32K cmake math.h

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

S32K cmake math.h

471 Views
Ralphty
Contributor II

Dears:

When I am compiling an S32K project using cmake, when I add the sin() function in the math. h library, an undefined reference to 'sin' appears during the linking process. What is the reason for this.

Ralphty_0-1699429748835.pngRalphty_1-1699429768375.png

 

Thanks!!!

Tags (1)
0 Kudos
3 Replies

449 Views
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 Kudos

434 Views
Ralphty
Contributor II
Dear:
Thank you very much for your reply. I did not use the IDE for project construction, but instead used cmake as the construction method. I also added - lc - lm - lgcc in the link options, but still reported the above issue.
0 Kudos

175 Views
drfrefw123
Contributor I

Dear:

I have the same problem. Have you solved it?

0 Kudos