[cfe-dev] #include <chrono> with Clang 3.1

Hadassi, Ofer OHadassi at nds.com
Wed Aug 1 06:46:02 PDT 2012


I am using Clang 3.1 on Ubuntu. Compiling this simple program:

#include <thread>
int main(int argc, char ** argv)
{
retrurn 0;
}

using the following command line fails:
clang++ -std=c++11 - test.cpp

The failure is due to the inclusion of <chrono> from <thread>. Replacing the
#include <thread>
with
#include <chrono>
gives the same results.

Is there a way to work with std::thread using Clang?

Thanks

Ofer

________________________________

This message is confidential and intended only for the addressee. If you have received this message in error, please immediately notify the postmaster at nds.com and delete it from your system as well as any copies. The content of e-mails as well as traffic data may be monitored by NDS for employment and security purposes.
To protect the environment please do not print this e-mail unless necessary.

An NDS Group Limited company. www.nds.com




More information about the cfe-dev mailing list