C++11 std::thread support
Zik Saleeba
zik at zikzak.net
Mon Feb 1 22:50:10 UTC 2016
Does anyone know what the state of c++11 std::thread support is? It
seems that it's not supported under the toolchain for ARM in RTEMS 4.11.
This simple test program fails to compile:
$ cat thread_test.cpp
#include <thread>
int main()
{
std::thread fred;
return 0;
}
$ arm-rtems4.11-g++ -std=gnu++11 -o thread_test thread_test.cpp
thread_test.cpp: In function 'int main()':
thread_test.cpp:5:5: error: 'thread' is not a member of 'std'
std::thread fred;
^
The same program compiles fine using the host's g++. I've tried both
-std=c++11 and -std=gnu++11 and both have the same problem.
Should I just avoid c++11 threads altogether?
--
Zik Saleeba
zik at zikzak.net
More information about the users
mailing list