From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5725 invoked by alias); 9 Mar 2009 21:37:03 -0000 Received: (qmail 5717 invoked by uid 22791); 9 Mar 2009 21:37:02 -0000 X-SWARE-Spam-Status: No, hits=0.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:36:57 +0000 Received: from MAIL.Cornell-Mayo.com ([192.168.1.5]) by mail ([192.168.1.5]) with mapi; Mon, 9 Mar 2009 17:36:55 -0400 From: Jeff Safier To: Jeff Safier , "pthreads-win32@sourceware.org" Date: Mon, 09 Mar 2009 21:37:00 -0000 Subject: RE: Visual 2005 compiler error Message-ID: <5B6FC0BE0060A844B9915BB91D8CE3787A2ABA6A0C@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/msg00012.txt.bz2 Sorry, wrong error messages, I was using an older version of the pthreads c= ode The errors are c:\cmalibs\pthreads\pthreads.2\pthread.h(571) : error C2040: 'pthread_t' : = 'ptw32_handle_t' differs in levels of indirection from 'HANDLE' c:\cmalibs\pthreads\pthreads.2\pthread.h(572) : error C2040: 'pthread_attr_= t' : 'pthread_attr_t_ *' differs in levels of indirection from 'pthread_att= r_t' c:\cmalibs\pthreads\pthreads.2\pthread.h(575) : error C2040: 'pthread_mutex= _t' : 'pthread_mutex_t_ *' differs in levels of indirection from 'CRITICAL_= SECTION' c:\cmalibs\pthreads\pthreads.2\pthread.h(576) : error C2040: 'pthread_mutex= attr_t' : 'pthread_mutexattr_t_ *' differs in levels of indirection from 'p= thread_mutexattr_t' c:\cmalibs\pthreads\pthreads.2\pthread.h(673) : 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.2\pthread.h(923) : warning C4028: formal param= eter 1 different from declaration c:\cmalibs\pthreads\pthreads.2\pthread.h(923) : warning C4028: formal param= eter 2 different from declaration c:\cmalibs\pthreads\pthreads.2\pthread.h(923) : warning C4028: formal param= eter 3 different from declaration c:\cmalibs\pthreads\pthreads.2\pthread.h(923) : warning C4028: formal param= eter 4 different from declaration c:\cmalibs\pthreads\pthreads.2\pthread.h(923) : 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.2\pthread.h(925) : 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.2\pthread.h(933) : 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.2\pthread.h(937) : 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.2\pthread.h(1007) : 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.2\pthread.h(1009) : 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.2\pthread.h(1011) : 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.2\pthread.h(1018) : 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' test.cpp c:\cmalibs\inc\zstring.hpp(226) : warning C4996: 'mbstowcs': This function = or variable may be unsafe. Consider using mbstowcs_s instead. To disable de= precation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(537)= : see declaration of 'mbstowcs' c:\cmalibs\inc\zstring.hpp(228) : warning C4996: 'mbstowcs': This function = or variable may be unsafe. Consider using mbstowcs_s instead. To disable de= precation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(537)= : see declaration of 'mbstowcs' c:\cmalibs\inc\zstring.hpp(822) : warning C4996: '_i64toa': This function o= r variable may be unsafe. Consider using _i64toa_s instead. To disable depr= ecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(504)= : see declaration of '_i64toa' c:\cmalibs\inc\zstring.hpp(829) : warning C4996: '_i64tow': This function o= r variable may be unsafe. Consider using _i65tow_s instead. To disable depr= ecation, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(716)= : see declaration of '_i64tow' c:\cmalibs\inc\zstring.hpp(836) : warning C4244: 'argument' : conversion fr= om 'Int64' to 'int', possible loss of data c:\cmalibs\inc\zstring.hpp(836) : warning C4996: '_itoa': This function or = variable may be unsafe. Consider using _itoa_s instead. To disable deprecat= ion, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(501)= : see declaration of '_itoa' c:\cmalibs\inc\zstring.hpp(843) : warning C4244: 'argument' : conversion fr= om 'Int64' to 'int', possible loss of data c:\cmalibs\inc\zstring.hpp(843) : warning C4996: '_itow': This function or = variable may be unsafe. Consider using _itow_s instead. To disable deprecat= ion, use _CRT_SECURE_NO_WARNINGS. See online help for details. c:\program files\microsoft visual studio 8\vc\include\stdlib.h(675)= : see declaration of '_itow'