AnsweredAssumed Answered

Using math.h

Question asked by a.alya on Feb 16, 2016
Latest reply on Feb 17, 2016 by a.alya
Hello every one

I need to implement the code for STM32F, like the next lines:
#include <stdlib.h>
#include <math.h>
int b;
a= max(10, b)

The compilation result is
warning: implicit declaration of function 'max' [-Wimplicit-function-declaration]
linking with -lm (or libm):
undefined reference to `max'

what is a problem here with using min/ max function?