任何人都可以帮我处理这个错误。非常感谢
#include "Threads.h"
#include "Interthread.h"
#include <pthread.h>
void* task1(void *arg) {
// do stuff
}
void task2() {
// do stuff
}
int main () {
//using namespace boost;
Thread thread_1;
thread_1.start (void *(*task1)(void *arg),NULL);
// Thread thread_2 = thread(task2);
// do other stuff
//thread_2.join();
//thread_1.join ();
return 0;
}
错误
Test.cpp:18:21:错误:在'void'之前预期的primary-expression