I am wanting to use std::thread with my Eclipse Indigo and MinGW (gcc 4.6.1)
combination on Windows 7 but it reports that thread is not a member of std.
I have included <thread> but when I examine that file it only defines thread
if __GXX_EXPERIMENTAL_CXX0X__ is defined.
How is this variable supposed to get defined? I already use the compiler
option of std=c++0x so what else do I need to do to have std::thread as a
usable class?
I am wanting to use std::thread with my Eclipse Indigo and MinGW (gcc 4.6.1)
combination on Windows 7 but it reports that thread is not a member of std.
I have included <thread> but when I examine that file it only defines thread
if __GXX_EXPERIMENTAL_CXX0X__ is defined.
How is this variable supposed to get defined? I already use the compiler
option of std=c++0x so what else do I need to do to have std::thread as a
usable class?
In my case, I have added "-std=c++0x" to Project -> Properties -> C++-Build[Settings] -> G++Compiler[miscellanous] -> Other flags.
By adding -std=gnu++0x to discovery options, a few new symbols are added to my project paths and symbols (after a build and index update) e.g. GXX_EXPERIMENTAL_CXX0X.