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

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

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

452 Views
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 Kudos
1 Reply

375 Views
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 Kudos