public inbox for pthreads-win32@sourceware.org
 help / color / mirror / Atom feed
From: Jeff Safier <Jeff@Cornell-Mayo.com>
To: "pthreads-win32@sourceware.org" <pthreads-win32@sourceware.org>
Subject: Visual 2005 compiler error
Date: Mon, 09 Mar 2009 21:28:00 -0000	[thread overview]
Message-ID: <5B6FC0BE0060A844B9915BB91D8CE3787A2ABA6A06@mail> (raw)



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 ==========




             reply	other threads:[~2009-03-09 21:28 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-09 21:28 Jeff Safier [this message]
2009-03-09 21:37 Jeff Safier
2009-03-09 22:37 ` Ross Johnson

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=5B6FC0BE0060A844B9915BB91D8CE3787A2ABA6A06@mail \
    --to=jeff@cornell-mayo.com \
    --cc=pthreads-win32@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).