5 Dec
2006
5 Dec
'06
8:41 p.m.
On 05-12-2006 21:36:04 +0100, Romulo Goncalves wrote:
% grep -A 2 PTHREAD_MUTEX_INITIALIZER /usr/include/pthread.h #define PTHREAD_MUTEX_INITIALIZER \ { { 0, 0, 0, 0, 0, 0 } } #ifdef __USE_GNU
Nothing because I have: /* Mutex initializers. */ #define PTHREAD_MUTEX_INITIALIZER \ { { 0, } } #ifdef __USE_GNU
Is this the problem?
Yes, because that's what the error message is saying: it expects all members of the struct to be initialised. Your initialiser looks pretty weird to me with that trailing ','.