我只想在Mac OSX 10.8上使用Apple clang版本4.1 (tags/Apple/clang-421.11.66)编译以下程序:
#include <thread>
using namespace std;
int main() {
cout << "Hello world";
}
但我得到的是:
../src/FirstCAgain.cpp:13:10: fatal error: 'thread' file not found
#include <thread>
我启用了C++11支持,并使用Eclipse C/C++开发工具。
问题是:如何在Mac OS X上获取新的C++线程支持?