Loading...
 
Skip to main content

System Workbench for STM32


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

Hi

In my setup there is only the "m" in the "libraries (-l)" text field nothing else. The text field "Library seach path (-L)" is empty.

Dieter