I was getting an error trying to compile the whole IS repo which was fixed by explicitly adding the thread include. I am using Ubuntu 22.04 and GCC 11.
/home/russ/work/is-workspace/Integration-Service/utils/test/mock/src/SystemHandle.cpp: In member function ‘virtual bool eprosima::is::sh::mock::SystemHandle::spin_once()’:
/home/russ/work/is-workspace/Integration-Service/utils/test/mock/src/SystemHandle.cpp:187:27: error: ‘sleep_for’ is not a member of ‘std::this_thread’
187 | std::this_thread::sleep_for(std::chrono::milliseconds(50));
| ^~~~~~~~~
gmake[2]: *** [CMakeFiles/is-mock.dir/build.make:76: CMakeFiles/is-mock.dir/src/SystemHandle.cpp.o] Error 1
gmake[1]: *** [CMakeFiles/Makefile2:83: CMakeFiles/is-mock.dir/all] Error 2
gmake: *** [Makefile:136: all] Error 2
---
Failed <<< is-mock [3.01s, exited with code 2]
Hello,
I was getting an error trying to compile the whole IS repo which was fixed by explicitly adding the
thread
include. I am using Ubuntu 22.04 and GCC 11.