bug-gnubg
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Bug-gnubg] Multiprocessing


From: Nardy Pillards
Subject: Re: [Bug-gnubg] Multiprocessing
Date: Tue, 8 Jul 2003 15:21:04 +0200

> >>Olivier Baur wrote:
> >>
> >>
> >>
> >>>    I think I've heard of a pthread implementation for Windows. A
> >>>    short search brought this:
> >>>    _http://sources.redhat.com/pthreads-win32/_
> >>>    Could this work?
> >>>
> >>>
> >>>
> >>Yes, this one works! But the problem is then sockets. Is it possible to
> >>make a multithread version without sockets?
> >>
> >>-Øystein
> >>
> >>
> >
> >libwsock32.a, libmswsock.a and  mswsock.h are within MinGW.
> >http://tangentsoft.net/wskfaq/examples/basics/index.html (example
makefile)
> >
> >so are winsock.h and winsock2.h
> >
> >
> Yes, I know. I've done applications with winsock earlier with the mingw
> compiler.
>
> -Øystein

Compiling branch-multi, changes made:

makefile, added:
procunits, threadglobals

configure, added:
#define HAVE_LIBPTHREAD 1
#define HAVE_SOCKETS 1
#define HAVE_SYS_SOCKET_H 1
#define PROCESSING_UNITS 1

.c sources, .h headers:
inserted #if WIN32 with <winsocket.h> in stead of the 'BSD-like' socket.h
lines

Compiling dice.c, error:
In file included from dice.c:80:
gtkgame.h:80: parse error before numeric constant
gtkgame.h:80: conflicting types for `CreateDialogParamA'
C:/MINGW/include/winuser.h:2756: previous declaration of
`CreateDialogParamA'
C:\MINGW\BIN\MINGW3~4.EXE: *** [dice.o] Error 1

possible reason:
windows.h calls winuser.h
winuser.h uses same CreateDialog definition as GTK does???

Nardy





reply via email to

[Prev in Thread] Current Thread [Next in Thread]