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
Post a Comment