From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13047 invoked by alias); 6 Jan 2007 14:52:35 -0000 Received: (qmail 13034 invoked by uid 22791); 6 Jan 2007 14:52:34 -0000 X-Spam-Check-By: sourceware.org Received: from baldwin.orcsoftware.com (HELO orcsoftware.com) (194.14.211.2) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 06 Jan 2007 14:52:28 +0000 Received: from [86.59.50.101] (account lutz HELO [192.168.0.130]) by orcsoftware.com (CommuniGate Pro SMTP 5.0.12) with ESMTPSA id 9243206 for pthreads-win32@sourceware.org; Sat, 06 Jan 2007 15:52:25 +0100 Message-ID: <459FB7A5.60104@orcsoftware.com> Date: Sat, 06 Jan 2007 14:52:00 -0000 From: "Lutz v. Grafenstein" User-Agent: Thunderbird 1.5.0.9 (Windows/20061207) MIME-Version: 1.0 To: Pthreads-Win32 list Subject: compiling problems using pthreads with mingw 4.2.3 g++ Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit 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: 2007/txt/msg00003.txt.bz2 Dear all using pthreads with mingw g++ (version3.4.2) i end with strange compiler errors. i do not have those issues with gcc (i.e. C code, not C++), or also VC++. also similar code compiled fine on a linux machine/SUSE 9.1/g++. maybe this is a known issue? the errors below are produced with an older snapshot of the headers, but with the latest release 2-8-0 i get get similar problems in oleidl.h: here i suspect something wrong with the windows.h or make i am using (it is from the mingw distribution), but have no evidence. thanks, Lutz ***************************************************************** ../../Libraries/pthreads/include/sched.h:301: error: expected `)' before '=' tok en ../../Libraries/pthreads/include/sched.h:301: error: expected `,' or `;' before '=' token In file included from ../../Libraries/Hash.h:19, from ShadowMarket.cpp:23: ../../Libraries/pthreads/include/pthread.h:1349: error: expected unqualified-id before '{' token ../../Libraries/pthreads/include/pthread.h:1349: error: expected `,' or `;' befo re '{' token ../../Libraries/pthreads/include/pthread.h:2163: error: expected `)' before '=' token ../../Libraries/pthreads/include/pthread.h:2163: error: expected `,' or `;' befo re '=' token ../../Libraries/pthreads/include/pthread.h:2213: error: expected class-name befo re '{' token ../../Libraries/pthreads/include/pthread.h:2215: error: expected class-name befo re '{' token