Skip to contentSkip to conversation

pthread issue with GNU_SOURCE

DISCUSSION E Robertson 1 participant 1 message Jul 2, 2008

lore
Share & tools
lore
#0 lore raw

Hi,
I haven't been able to explain this and I'm looking for some help. I'm building the microwindows package and always stuck with this error:

error: 'PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP' undeclared here (not in a
function)

It is defined in pthread.h and after some checking the headers is included properly. I explicitly defined _GNU_SOURCE to be true in the package for it to compile.

I checked the header files used by pthread.h and it is alredy defined. Does anyone knows what could be the cause?