Teckna Teckna

Math function

Discussion created by Teckna Teckna on Jan 11, 2013
Latest reply on Jan 15, 2013 by Phil`D

Hi folks,


I'm using CW10.2, MQX 3.8.1 amd a custom board with K60.


In one of source files I have the following statements:


#include <math.h>


float a, b, c;




a = powf( b, c );


When I build the project, the compiler gives me the error "function has no prototype" on that line. If I use pow function instead of powf function, no error comes.

Is there some settings I must do or some include file I'm missing?


Many thanks




If I enable the "Require function prototypes" flag, the error is present, but if I disable it, the error is not present: maybe there is a missing declaration in the include file?