Compilation errors when using newer C++ standards #99
-
Out of curiosity I have tried to compile Audacious with the gnu++20 standard. String foo;
if (foo != nullptr)
... Error message:
How can this be solved? Ideally in our String class, so we do not have to change all explicit null checks to this which compiles fine. String foo;
if (foo)
... Another question I have is why do we use the gnu c++ standard. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
I don't think we should be comparing a Regarding the |
Beta Was this translation helpful? Give feedback.
-
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 audacious/src/libaudcore/equalizer.cc Line 64 in b7f0019 |
Beta Was this translation helpful? Give feedback.
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.
audacious/src/libaudcore/equalizer.cc
Line 64 in b7f0019