[cfe-dev] clang libc++ libcxxabi std::thread std::async
David Irvine
david.irvine at maidsafe.net
Tue May 29 06:36:06 PDT 2012
I am curious if anyone has been able to get clang++ to run std::async in
linux at all. If so the process would be great. I have tried TOT + libc++,
with stdc++ and also the recently released binaries. In no configuration
can I get this to work. As recently reported (not by me) in another mail
(lost now), the following fails :
#include <thread>
void f(){}
int main() {
std::thread t(f);
t.join();
}
compiled with
clang++ -std=c++11 thread.cc -o thread -pthread
output
./thread
pure virtual method called
terminate called without an active exception
Aborted (core dumped)
using
clang++ --version
clang version 3.1 (tags/RELEASE_31/final)
Target: x86_64-unknown-linux-gnu
Thread model: posix
std::async seems to fail at runtime, I think this is due to abi issues but
cannot be sure.
Best Regards
David Irvine
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20120529/81baaeb7/attachment.html>
More information about the cfe-dev
mailing list