This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
c++0x, std::thread error
- From: luís <lmsilva at gmx dot de>
- To: gcc-help at gcc dot gnu dot org
- Date: Thu, 25 Mar 2010 21:21:01 +0000
- Subject: c++0x, std::thread error
Hello
I compiled & installed gcc4.4 using macports.
When I try to compile:
#include <thread>
...
std::thread t(handle);
t.join();
....
the compiler returns:
cserver.cpp: In member function 'int CServer::run()':
cserver.cpp:48: error: 'thread' is not a member of 'std'
cserver.cpp:48: error: expected ';' before 't'
cserver.cpp:49: error: 't' was not declared in this scope
std::cout <<... works fine.
Can anyone help me?
Thanks!