I am using Fedora 34 and gcc-c++-11.1.1 and I got this error when running make:
AudioManager.cpp: In member function ‘void CAudioManager::audio2codec(bool)’:
AudioManager.cpp:75:43: error: ‘sleep_for’ is not a member of ‘std::this_thread’
75 | std::this_thread::sleep_for(std::chrono::milliseconds(3));
| ^~~~~~~~~
To solve it I added #include <thread> to AudioManager.cpp.
I am using Fedora 34 and gcc-c++-11.1.1 and I got this error when running
make
:To solve it I added
#include <thread>
toAudioManager.cpp
.