$cat thread.cc #include <thread>
void f(){}
int main() { std::thread t(f); t.join(); }
$clang++ -v clang version 3.2 (trunk) Target: x86_64-unknown-linux-gnu Thread model: posix $clang++ -std=c++11 thread.cc -o thread -pthread
$./thread pure virtual method called terminate called without an active exception Aborted
$cat thread.cc
#include <thread>
void f(){}
int main()
{
std::thread t(f);
t.join();
}
$clang++ -v unknown- linux-gnu
clang version 3.2 (trunk)
Target: x86_64-
Thread model: posix
$clang++ -std=c++11 thread.cc -o thread -pthread
$./thread
pure virtual method called
terminate called without an active exception
Aborted