Unsolved standard threads on linux..
-
Hello!
This is not a Qt specific question so please forgive me, i put this here since the tittle says "General & Desktop".
I'm trying to use std::thread on linux but i got some compiler error (because linux you know)... i need to add the -pthread flag in somewhere inside Qt Creator.. but do not know where to..
Any light?
std::thanks.. -
Hi
Try to put in your .pro file
LIBS += -pthread
and then clean all , rebuuild allin older times you also had to add
QMAKE_CXXFLAGS += -std=c++0x -pthreadbefore LIBS +=
but not sure its needed anymore. -
-
Both thanks a lot...!
i will try that..