c++ - Thread or class error c++11 -
when try compile following code g++ -std=c++11 -pthread
following error , have no idea why.
#include<thread> using namespace std; void test (){ } int main () { thread t1 (test); t1.join; return 0; }
8:9: error: statement cannot resolve address of overloaded function t1.join;
Comments
Post a Comment