可能重复:
未定义的命名空间'boost'
谁能帮我处理这个错误。非常感谢
#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' 之前的预期主表达式</p>