Skip to main content
Ebun.1
Senior
Solved

I want to use a function called sincos ()

Thank you for helping.

When building with sincos ()

'sincos' was not declared in this scope

I get the error.

What should I do?

#include "math.h" is declared.

Thank you.

This topic has been closed for replies.
Kanna
KannaBest answer
Associate III

you can try with CMSIS library, there you have arm_sincos function

3 replies

TDK

sincos is not a standard function

This may or may not work:

https://stackoverflow.com/questions/61451008/where-did-sincos-go-gcc-c

If it doesn't work, just use sin and cos separately.

"If you feel a post has answered your question, please click ""Accept as Solution""."
Kanna
KannaBest answer
Associate III

you can try with CMSIS library, there you have arm_sincos function

Ebun.1
Ebun.1Author
Senior

Hi, TDK

Hi, Kanna

Thank you for your response.

I will investigate CMSIS and give it a try.

Thank you very much.