I have create small program which is working with pthreadVC.lib which is Win32 version. I am using visual studio 2013.
When I have changed program setting for x64 od same program and then I have linked pthreadVC2.lib (which for x64 configuration) and then my program crashing at pthread_join also instead of join I used pthread_cancel but having same issue . Also I have build pthread myself  for x64 and linked that library but still having same problem.
My Test Code
#include<stdio.h>
#include<pthread.h>
pthread_mutex_t mutex = NULL; 
pthread_cond_t cond = NULL;
void test(){
    pthread_mutex_lock(&mutex);
    printf("\n Threads Working");
    pthread_mutex_unlock(&mutex);
}
void main() {
    pthread_t threadid;
    pthread_create(&threadid,NULL,(void*)test,NULL);
    pthread_join(threadid,NULL);
    printf("\n FINISH ");
    if (getchar())
        return;
} 
Error which get on x64 configuration is
Unhandled exception at 0x0000000180002C70 (pthread_dll.dll) in Pthread64_bit.exe: 0xC0000005: Access violation reading location 0x000000000000001A.
Edit :
Also I have copied  example from pthreads in C – a minimal working example
and try to run but having same error in pthread_join .
So can you tell me is there any other setting need to do for x64 or where I missing?
 
    