* compiling problems using pthreads with mingw 4.2.3 g++
@ 2007-01-06 14:52 Lutz v. Grafenstein
2007-01-06 16:18 ` Lutz v. Grafenstein
0 siblings, 1 reply; 2+ messages in thread
From: Lutz v. Grafenstein @ 2007-01-06 14:52 UTC (permalink / raw)
To: Pthreads-Win32 list
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: compiling problems using pthreads with mingw 4.2.3 g++
2007-01-06 14:52 compiling problems using pthreads with mingw 4.2.3 g++ Lutz v. Grafenstein
@ 2007-01-06 16:18 ` Lutz v. Grafenstein
0 siblings, 0 replies; 2+ messages in thread
From: Lutz v. Grafenstein @ 2007-01-06 16:18 UTC (permalink / raw)
To: Pthreads-Win32 list; +Cc: Lutz v. Grafenstein
Please disregard my last post: i found that macro definitions (clashing
with windows stuff) included before pthreads caused the mentioned
problems with pthreads release 2-8-0. no problems so far when removing
the macros.
Cheers,
Lutz
Lutz v. Grafenstein schrieb:
> 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
--
Lutz v. Grafenstein
Trading Software Analyst
--------------------
Orc Software GmbH,
A-1010 Wien, Tuchlauben 14/9
Telefon: +43 1 5126993
Fax: +43 907 67 55
www.orcsoftware.com
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-01-06 16:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-01-06 14:52 compiling problems using pthreads with mingw 4.2.3 g++ Lutz v. Grafenstein
2007-01-06 16:18 ` Lutz v. Grafenstein
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).