基于S32K144 RTM v3.0.0版本创建的HELLOW WORLD demo工程,使用数学函数时编译报错

报错内容:未定义函数 asinf,sqrt,atan2f等(已添加头文件math.h)
#include "Cpu.h"
#include <math.h>
int constant1 = 9;
int constant2 = 16;
int constant3 = 0;
int constant4 = 0;
int main(void)
{
while(1)
{
constant1 = sqrt(constant1);
constant2 = asinf(constant2);
constant3 = atan2f(constant1,constant2);
constant4 = sqrt(4);
}
}
Description Resource Path Location Type
Ld error: undefined reference to asinf' hello_world_s32k144 C/C++ ProblemDescription Resource Path Location Type Ld error: undefined reference to atan2f' hello_world_s32k144 C/C++ ProblemDescription Resource Path Location Type
Ld error: undefined reference to `sqrt' hello_world_s32k144 C/C++ Problem
在stm32单片机上都没问题,这个报错要怎么解决呢。再次强调有添加math.h的头文件


