swesterfeld / liquidsfz

SFZ Sampler
Mozilla Public License 2.0
86 stars 12 forks source link

Build fails on Fedora 40 #42

Closed johnauld closed 3 months ago

johnauld commented 4 months ago

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

Versions: gcc-c++-14.1.1-1.fc40.x86_64 libstdc++-14.1.1-1.fc40.x86_64

PR to follow...

swesterfeld commented 3 months ago

Thanks for reporting this, fixed by merging https://github.com/swesterfeld/liquidsfz/pull/43