c/c++混合编程出错, 请教
redex 2007-07-18 02:47:45 typedef struct {
std::list<int*> mylist;
pthread_mutex_t mylock;
} test;
test* mytests = new test[3];
pthread_mutex_init(&mytests[0].mylock, 0);
-----------------------------------------------------
Segmentation fault
请教是什么原因, 怎么改正.