From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 393 invoked by alias); 9 Mar 2009 21:28:13 -0000 Received: (qmail 381 invoked by uid 22791); 9 Mar 2009 21:28:12 -0000 X-SWARE-Spam-Status: No, hits=1.2 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from host226.fpps.net (HELO MAIL.Cornell-Mayo.com) (65.215.89.226) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 09 Mar 2009 21:28:06 +0000 Received: from MAIL.Cornell-Mayo.com ([192.168.1.5]) by mail ([192.168.1.5]) with mapi; Mon, 9 Mar 2009 17:28:03 -0400 From: Jeff Safier To: "pthreads-win32@sourceware.org" Date: Mon, 09 Mar 2009 21:28:00 -0000 Subject: Visual 2005 compiler error Message-ID: <5B6FC0BE0060A844B9915BB91D8CE3787A2ABA6A06@mail> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-IsSubscribed: yes Mailing-List: contact pthreads-win32-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sourceware.org X-SW-Source: 2009/txt/msg00011.txt.bz2 I downloaded the pthreads windows dll and header files, I am now getting th= e 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_att= r_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_mutex= attr_t' : 'pthread_mutexattr_t_ *' differs in levels of indirection from 'p= thread_mutexattr_t' c:\cmalibs\pthreads\pthreads.1\pthread.h(703) : warning C4005: 'PTHREAD_MUT= EX_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 param= eter 1 different from declaration c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal param= eter 2 different from declaration c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal param= eter 3 different from declaration c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : warning C4028: formal param= eter 4 different from declaration c:\cmalibs\pthreads\pthreads.1\pthread.h(953) : error C2375: 'pthread_creat= e' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(61) : see declarati= on of 'pthread_create' c:\cmalibs\pthreads\pthreads.1\pthread.h(955) : error C2375: 'pthread_detac= h' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(67) : see declarati= on 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 declarati= on of 'pthread_join' c:\cmalibs\pthreads\pthreads.1\pthread.h(967) : error C2375: 'pthread_cance= l' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(65) : see declarati= on of 'pthread_cancel' c:\cmalibs\pthreads\pthreads.1\pthread.h(1037) : error C2375: 'pthread_mute= x_init' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(69) : see declarati= on of 'pthread_mutex_init' c:\cmalibs\pthreads\pthreads.1\pthread.h(1039) : error C2375: 'pthread_mute= x_destroy' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(73) : see declarati= on of 'pthread_mutex_destroy' c:\cmalibs\pthreads\pthreads.1\pthread.h(1041) : error C2375: 'pthread_mute= x_lock' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(71) : see declarati= on of 'pthread_mutex_lock' c:\cmalibs\pthreads\pthreads.1\pthread.h(1048) : error C2375: 'pthread_mute= x_unlock' : redefinition; different linkage c:\cmalibs\xmlrpc-c\lib\util\include\pthreadx.h(72) : see declarati= on 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': N= o such file or directory Build log was saved at "file://c:\bosngpss\xrslib\test___Win32_Debug\BuildL= og.htm" test - 13 error(s), 5 warning(s) =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Rebuild All: 0 succeeded, 1 failed, 0 skippe= d =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D