C++11 std::thread support

Jeff Webb jeff.webb at nta-inc.net
Mon Feb 1 23:19:38 UTC 2016


You need 4.12.  I was able to get it working -- search the mailing list archives for the details.

-Jeff

On 02/01/2016 04:50 PM, Zik Saleeba wrote:
> 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?
>




More information about the users mailing list