c++ - Qt - 'thread' file not found -


i'm trying build c++ program threads in qt, gives me error: 'thread' file not found. in xcode can run program threads!. how can solve issue ?

#include "widget.h" #include <qapplication> #include <thread>  int main(int argc, char *argv[]) {     qapplication a(argc, argv);     widget w;     w.show();  return a.exec(); } 

<thread> header introduced c++11. enable c++11 project, add .pro file:

config += c++11 

Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -