This is the mail archive of the pthreads-win32@sourceware.org mailing list for the pthreas-win32 project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Visual 2005 compiler error



I downloaded the pthreads windows dll and header files, I am now getting the following error messages. Can anyone help?


c:\cmalibs\pthreads\pthreads.1\pthread.h(603) : error C2040: 'pthread_t' : 'ptw32_handle_t' differs in levels of indirection from 'HANDLE'
c:\cmalibs\pthreads\pthreads.1\pthread.h(604) : error C2040: 'pthread_attr_t' : 'pthread_attr_t_ *' differs in levels of indirection from 'pthread_attr_t'
c:\cmalibs\pthreads\pthreads.1\pthread.h(607) : error C2040: 'pthread_mutex_t' : 'pthread_mutex_t_ *' differs in levels of indirection from 'CRITICAL_SECTION'
c:\cmalibs\pthreads\pthreads.1\pthread.h(608) : error C2040: 'pthread_mutexattr_t' : 'pthread_mutexattr_t_ *' differs in levels of indirection from 'pthread_mutexattr_t'
c:\cmalibs\pthreads\pthreads.1\pthread.h(703) : warning C4005: 'PTHREAD_MUTEX_INITIALIZER' : macro redefinition
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(42) : see previous definition of 'PTHREAD_MUTEX_INITIALIZER'
c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal parameter 1 different from declaration
c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal parameter 2 different from declaration
c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal parameter 3 different from declaration
c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal parameter 4 different from declaration
c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : error C2375: 'pthread_create' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(61) : see declaration of 'pthread_create'
c:\cmalibs\pthreads\pthreads.1\pthread.h(955) : error C2375: 'pthread_detach' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(67) : see declaration of 'pthread_detach'
c:\cmalibs\pthreads\pthreads.1\pthread.h(963) : error C2375: 'pthread_join' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(66) : see declaration of 'pthread_join'
c:\cmalibs\pthreads\pthreads.1\pthread.h(967) : error C2375: 'pthread_cancel' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(65) : see declaration of 'pthread_cancel'
c:\cmalibs\pthreads\pthreads.1\pthread.h(1037) : error C2375: 'pthread_mutex_init' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(69) : see declaration of 'pthread_mutex_init'
c:\cmalibs\pthreads\pthreads.1\pthread.h(1039) : error C2375: 'pthread_mutex_destroy' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(73) : see declaration of 'pthread_mutex_destroy'
c:\cmalibs\pthreads\pthreads.1\pthread.h(1041) : error C2375: 'pthread_mutex_lock' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(71) : see declaration of 'pthread_mutex_lock'
c:\cmalibs\pthreads\pthreads.1\pthread.h(1048) : error C2375: 'pthread_mutex_unlock' : redefinition; different linkage
        c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(72) : see declaration of 'pthread_mutex_unlock'
Generating Code...
Creating browse information file...
Microsoft Browse Information Maintenance Utility Version 8.00.50727
Copyright (C) Microsoft Corporation. All rights reserved.
BSCMAKE: error BK1506 : cannot open file '.\test___Win32_Debug\test.sbr': No such file or directory
Build log was saved at "file://c:\bosngpss\xrslib\test___Win32_Debug\BuildLog.htm"
test - 13 error(s), 5 warning(s)
========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]