C++11 std::thread support

Zik Saleeba zik at zikzak.net
Mon Feb 1 23:22:24 UTC 2016


Thanks Jeff

-- 
  Zik Saleeba
  zik at zikzak.net

On Tue, Feb 2, 2016, at 10:19 AM, Jeff Webb wrote:
> 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?
> >
> 
> _______________________________________________
> users mailing list
> users at rtems.org
> http://lists.rtems.org/mailman/listinfo/users



More information about the users mailing list