This is the mail archive of the
pthreads-win32@sourceware.org
mailing list for the pthreas-win32 project.
compiling problems using pthreads with mingw 4.2.3 g++
- From: "Lutz v. Grafenstein" <lutz at orcsoftware dot com>
- To: Pthreads-Win32 list <pthreads-win32 at sourceware dot org>
- Date: Sat, 06 Jan 2007 15:52:21 +0100
- Subject: compiling problems using pthreads with mingw 4.2.3 g++
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