#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);
}
}
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
自己找到原因了:编译器问题 添加Libraies-lm