minetest 5.8.0 src/client/sound/sound_data.cpp missing #include <algorithm>
#14738
Labels
@ Build
CMake, build scripts, official builds, compiler and linker errors
Possible close
Unconfirmed bug
Bug report that has not been confirmed to exist/be reproducible
Minetest version
Irrlicht device
X11
Operating system and version
Artix (Most recent version / Rolling release)
gcc (GCC) 14.1.1 20240522
CPU model
No response
GPU model
No response
Active renderer
No response
Summary
The file src/client/sound/sound_data.cpp uses C++ std library functions
std::lower_bound
andstd::upper_bound
, but because<algorithm>
is not included, the compiler throws errors saying these functions are not defined. I noticed, in 5.9.0-dev, this is fixed. Can this be fixed in 5.8.0? I was able to fix this and run minetest as usual after adding#include <algorithm>
to the file. Minetest 5.8.0 otherwise will not compile on my system.Here is the git diff:
Steps to reproduce
Compile minetest 5.8.0 and wait for it to get to src/client/sound/sound_data.cpp.
The text was updated successfully, but these errors were encountered: