how to use the function of fabs for mpc5643l c project with codewarrior 10.6?

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

how to use the function of fabs for mpc5643l c project with codewarrior 10.6?

935 次查看
fangliang
Contributor I

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#define EWL_FLOATING_POINT 1
#define EWL_C99 1

j = -11.11f;
j = fabsf(j);

the IDE tell me:function has no prototype 

the IDE have included the head files :

${PAToolsBaseDir}/PA_Support/ewl/EWL_C/include

${PAToolsBaseDir}/PA_Support/ewl/EWL_Runtime/Runtime_PA/Include

thank you!

0 项奖励
回复
1 回复

858 次查看
martin_kovar
NXP Employee
NXP Employee

Hello,


I tested your use case on my side, but I am not able to reproduce the problem. Could you please share me your project?

Regards,

Martin

0 项奖励
回复