>
> Do let me know if you discover otherwise.
>

I can confirm std::thread is disabled for mingw 4.5.0 (TDM). I tried this
simple test program:

#include <iostream>
> #include <thread>
> using namespace std;
>
> void f()
> {
>   cout << "thread started" << endl;
> }
>
> int main()
> {
>   thread t(f);
>    t.join();
>   return 0;
> }
>

And tested it on Sidux x86_64 with gcc 4.4.5 (prerelease):

> g++ -std=gnu++0x -pthread main.cpp -o test
>
and ./test outputs "threas started".

With TDM GCC x64 and TDM GCC (from mingw.org):

> g++ -std=gnu++0x [-mthreads] [-lpthread] main.cpp test.exe
>
it gives an error: thread is not a member of std.... it is disabled. I
clearly has to do with this:
http://stackoverflow.com/questions/2519607/c0x-stdthread-error-thread-not-member-of-std
#if defined(_GLIBCXX_HAS_GTHREADS) && defined(_GLIBCXX_USE_C99_STDINT_TR1)

Does someone feel compelled to see what's required? I think there needs to
be some code written to link win32-pthreads to the gcc std::thread API, just
like OpenMP also uses win32-pthreads. Is this line of thought correct?

Ruben
------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to