I am using GCC 4.5.0 with the Eclipse IDE (if that matters) on Windows via MinGW.
I'm using the -std=c++0x
flag.
I find that _GLIBCXX_HAS_GTHREADS
still isn't defined, so thread
for me still isn't a member of namespace std
. -- or perhaps it is something else.
What does one do to get C++0x threading support with GCC?
P.S. It doesn't recognize the -pthread
flag. I read in a question elsewhere on this site that this works.
Edit: Stupid me: pthread
is a library, not an option. It's installed, gcc can find the header, but still no cigar.