Macportsを使用してgcc4.4をコンパイルしてインストールしました。
-> g++ -g -Wall -ansi -pthread -std=c++0x main.cpp... を使用してコンパイルしようとすると:
#include <thread>
...
std::thread t(handle);
t.join();
....
コンパイラは次を返します。
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 <<...
うまくコンパイルされます..
誰でも私を助けることができますか?