AnsweredAssumed Answered

MK53DN512CMD18 math.h problem

Question asked by Alberto Peña on Oct 23, 2015
Latest reply on Oct 26, 2015 by Pascal Irrle

Hi, i´m usiing a MK53DN512CMD18 on a custom board and a need to do the operation below:

y=fabs(1.0-Accel_X);

The variables y and Accel_X are float type.

When i compile the proyect get the next warning:

Implicit declaration of function 'fabs' [-Wimplicit-function-declaration] incompatible implicit declaration of built-in function 'fabs' [enabled by default]  

And debugging got stock on that line of the fabs function, also with others functions of the math library.

I realy appreciate your help.

Regards

Alberto Peña

Outcomes