Skip to content

Compilation errors when using newer C++ standards #99

Closed Answered by radioactiveman
radioactiveman asked this question in Q&A
Discussion options

You must be logged in to vote

All right, thanks John. Fixed with c67afc5 and audacious-media-player/audacious-plugins@6009062.

Using c++20 instead of gnu++20 caused the Windows build to fail with the error M_PI was not declared in this scope.
So let's better keep using the gnu std.

float th = 2 * (float)M_PI * fc;

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by radioactiveman
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants