Compile with CMSIS
Hi
I also got this error with “#include “math.h” when using sqrtf.
Goto: right click in Project Explorer on project name.
Properties -> C/C++ Build -> Settings -> “MCU GCC Linker” -> “Libraries”
Here uncheck “Use C math library (-lm)”.
Click on add button besides “libraries (-l)” and just write “m”
This way libmath gets included after libc.
Gruß
Dieter