Using the latest GCC and libstdc++ from the Fedora repo, the build fails with:
CXX testsynth.o
testsynth.cc: In function ‘SineDetectPartial max_partial(const std::vector<float>&, int)’:
testsynth.cc:205:8: error: ‘sort’ is not a member of ‘std’; did you mean ‘sqrt’?
205 | std::sort (partials.begin(), partials.end(), [](auto a, auto b) { return a.mag > b.mag; });
| ^~~~
| sqrt
make[2]: *** [Makefile:710: testsynth.o] Error 1
Using the latest GCC and libstdc++ from the Fedora repo, the build fails with:
Versions: gcc-c++-14.1.1-1.fc40.x86_64 libstdc++-14.1.1-1.fc40.x86_64
PR to follow...