Hi any body try to use header support mingw w64?
main.cpp: In function 'int main()':
main.cpp:9:10: error: 'std::this_thread' has not been declared
std::this_thread::sleep_for( dura );
^
I got above error with following simple test
#include <iostream>
#include <chrono>
#include <thread>
int main()
{
std::cout << "Hello waiter" << std::endl;
std::chrono::milliseconds dura( 2000 );
std::this_thread::sleep_for( dura );
std::cout << "Waited 2000 ms\n";
}
I want to use lastest N3653 and N3651 as spesified here http://ift.tt/1pr9LFz and of course threading support header , using someone builds found here http://ift.tt/1JEFZbs and my c++config.h _GLIBCXX_USE_NANOSLEEP is not defined , any idea?
Aucun commentaire:
Enregistrer un commentaire