From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22572 invoked by alias); 26 Jun 2002 13:36:59 -0000 Mailing-List: contact pthreads-win32-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: pthreads-win32-owner@sources.redhat.com Received: (qmail 22529 invoked from network); 26 Jun 2002 13:36:50 -0000 Received: from unknown (HELO maho3msx2.isus.emc.com) (128.221.11.32) by sources.redhat.com with SMTP; 26 Jun 2002 13:36:50 -0000 Received: by MAHO3MSX2 with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Jun 2002 09:34:56 -0400 Message-ID: <8D3680004D2FD5118B510002B32C0FBE6EBE72@bebr3mx1.corp.emc.com> From: Pinte_Stanislas@emc.com To: pthreads-win32@sources.redhat.com Subject: RE: compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 () Date: Wed, 26 Jun 2002 06:36:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-SW-Source: 2002/txt/msg00078.txt.bz2 I figured out the reason: I compiled using the -gccincludes option. withing the gcc includes, there is a mode_t type already defined... So for the best, the variable name could be renamed to something unique to the pthreads_win32... Stan. -----Original Message----- From: Pinte_Stanislas@emc.com [mailto:Pinte_Stanislas@emc.com] Sent: woensdag 26 juni 2002 14:44 To: pthreads-win32@sources.redhat.com Subject: compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 () hello, I am compiling a cpp file which is #include ing the semaphore.h header, and= =20 it gives me: [apply] ..\..\PTHREADS\Pre-built\include\semaphore.h:93: declaration syntax error [apply] ..\..\PTHREADS\Pre-built\include\semaphore.h:94: declaration syntax error=20 errors. There are two quick fixes for that stuff: the first one is to replace=20 #ifdef HAVE_MODE_T=20 typedef unsigned int mode_t;=20 #endif by=20 #ifdef WIN32=20 typedef unsigned int mode_t;=20 #endif the second one is to=20 #define HAVE_MODE_T in the files #include'ing semaphore.h any ideas why this happens? thanks, Stan. Stanislas Pinte - Associate Software Engineer. Phone: +32-(0)15-401.371=20 Fax: +32-(0)15-401.400 Address: Schali=EBnhoevedreef 20i, B-2800 Mechelen, Belgium