From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23038 invoked by alias); 26 Jun 2002 12:46:14 -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 23016 invoked from network); 26 Jun 2002 12:46:04 -0000 Received: from unknown (HELO mailhub.lss.emc.com) (168.159.1.79) by sources.redhat.com with SMTP; 26 Jun 2002 12:46:04 -0000 Received: from emc.com (emcmail.lss.emc.com [168.159.48.78]) by mailhub.lss.emc.com (Switch-2.2.0/Switch-2.2.0) with ESMTP id g5QCk0F17967 for ; Wed, 26 Jun 2002 08:46:01 -0400 (EDT) Received: from mxic1.isus.emc.com ([168.159.129.100]) by emc.com (8.10.1/8.10.1) with ESMTP id g5QCk0713165 for ; Wed, 26 Jun 2002 08:46:00 -0400 (EDT) Received: by MXIC1 with Internet Mail Service (5.5.2653.19) id ; Wed, 26 Jun 2002 08:44:15 -0400 Message-ID: <8D3680004D2FD5118B510002B32C0FBE6EBE71@bebr3mx1.corp.emc.com> From: Pinte_Stanislas@emc.com To: pthreads-win32@sources.redhat.com Subject: compilation problem under windows 2000, using metrowerks mwcc Ver sion 2.4.5 build 199 () Date: Wed, 26 Jun 2002 05:46:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable X-Perlmx-Spam: Gauge=XXIIIIIII, Probability=27%, Report="NO_REAL_NAME, SUBJ_HAS_SPACES" X-SW-Source: 2002/txt/msg00077.txt.bz2 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