S32K cmake math.h

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

S32K cmake math.h

1,833 次查看
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!!!

标记 (1)
0 项奖励
回复
3 回复数

1,811 次查看
davidtosenovjan
NXP TechSupport
NXP TechSupport
0 项奖励
回复

1,796 次查看
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 项奖励
回复

1,537 次查看
drfrefw123
Contributor I

Dear:

I have the same problem. Have you solved it?

0 项奖励
回复