code builds using clang: shkiper@server:~/C++/Thread$ clang++ thread.cpp -o thread -pthread -std=c++11 shkiper@server:~/C++/Thread$ ./thread 1307674368000 355687428096000 shkiper@server:~/C++/Thread$ so, problem is in g++
-- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1228201 Title: g++ doesn't compile simple code, using thread header To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/gcc-defaults/+bug/1228201/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
