Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 6039

General • PIVO W sine_wave M_PI not defined

$
0
0
Hi Ho
I am now trying to build the sine_wave example
I cloned a working minimal project and then added the sine_wave.c code and the CMakeList.txt

I am getting an error

Code:

identifier "M_PI" is undefined
I see M_PI has a conditional definition in math.h which is #included in the code.

Code:

#if __BSD_VISIBLE || __XSI_VISIBLE.#define M_PI3.14159265358979323846.#endif
In my case neither of these tests seem to be true!!

Have I missed something obvious ( again)
Thanks
Ted

Statistics: Posted by tfcroft4 — Mon Feb 05, 2024 2:53 pm



Viewing all articles
Browse latest Browse all 6039

Latest Images

Trending Articles



Latest Images