Skip to main content
Ebun.1
Senior
September 3, 2021
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
September 3, 2021

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

3 replies

TDK
September 3, 2021

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
September 3, 2021

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

Ebun.1
Ebun.1Author
Senior
September 3, 2021

Hi, TDK

Hi, Kanna

Thank you for your response.

I will investigate CMSIS and give it a try.

Thank you very much.