This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Sdk 1.6.0 Math Function.

Hello,

how add math function to a segger project.

I have included 

#include <math.h>

void myFuncion()

{

. . .

 rx=(int)((float)(*x-cx)* cos(a) -(float)(*y-cy)*sin(a)+cx);

. . .

}

but i get error

undefined reference to 'cos'

Related