This is the mail archive of the gcc-help@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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!


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]