s_base.cpp compile error with -std=c++11 #3512
Labels
Blocker
The issue needs to be addressed before the next release.
Bug
Issues that were confirmed to be a bug
@ Build
CMake, build scripts, official builds, compiler and linker errors
High priority
jni/../jni/src/script/cpp_api/s_base.cpp: In constructor 'ScriptApiBase::ScriptApiBase()':
jni/../jni/src/script/cpp_api/s_base.cpp:71:22: error: no matching function for call to 'std::mutex::mutex(bool)'
m_luastackmutex(true)
^
In file included from jni/src/threading/mutex.h:31:0,
from jni/src/threads.h:41,
from jni/src/script/cpp_api/s_base.h:31,
from jni/../jni/src/script/cpp_api/s_base.cpp:20:
/home/server/crystax/sources/cxx-stl/gnu-libstdc++/5/include/mutex:126:5: note: candidate: constexpr std::mutex::mutex()
mutex() noexcept = default;
^
/home/server/crystax/sources/cxx-stl/gnu-libstdc++/5/include/mutex:126:5: note: candidate expects 0 arguments, 1 provided
[armeabi-v7a] Compile++ thumb: minetest <= s_node.cpp
make[2]: [obj/local/armeabi-v7a/objs/minetest/jni/src/script/cpp_api/s_base.o] Error 1
The text was updated successfully, but these errors were encountered: