summaryrefslogtreecommitdiff
path: root/README
blob: e83ca98d7fb6879e4eb2271dca9a449053c652ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
This directory contains an implementation of pthreads for Win32. 

Mailing list
------------

There is a mailing list for discussing pthreads on Win32 which is
managed by Majordomo. To subscribe, send mail to majordomo@air.net.au
and place the fllowing text in the message body:

	subscribe pthreads-win32


Building the library with Cygwin or Mingw32
---------------------------------------------
Feb 18, 1999

If you have a suitable environment then you can run the configure script,
otherwise you should edit "Makefile" and "config.h" as required.

gcc cannot be used because the library requires C++ EH. g++ must be usedi
(but see below).

The DLL pthread.dll still cannot be built using g++ due to non thread-safe
exception handling in g++.  Thanks to Kevin Ruland for researching this
one. See the FAQ Question 2 for more information.

However, you can use the export library libpthread32.a built under
Mingw32 (not tested under Cygwin) together with the pthread.dll built
with MSVC. Thanks to Anders Norlander for pointing this out.

For convenience, the following pre-built files can be downloaded from
the FTP site (see under "Availability" below):

	pthread.h	- the standard include file
	pthread.dll	- built with MSVC cl compiler
	pthread.lib	- built with MSVC cl compiler
	libpthread32.a	- built with Mingw32 (use with MSVC pthread.dll)

With these files in the same directory as your application myapp.c,
you could compile, link and run myapp.c under Mingw32 as follows:

	gcc -o myapp.exe myapp.c -I. -L. -lpthread32
	myapp

Or put pthread.dll in an appropriate directory in your PATH,
put libpthread32.a in MINGW_ROOT\i386-mingw32\lib, and
put pthread.h in MINGW_ROOT\i386-mingw32\include, then use:

	gcc -o myapp.exe myapp.c -lpthread32
	myapp


Availability
------------

The complete source code in either unbundled or tar/gzipped format
can be found at:
	ftp://sourceware.cygnus.com/pub/pthreads-win32

The pre-built DLL, export libraries and matching pthread.h can be found at:
	ftp://sourceware.cygnus.com/pub/pthreads-win32/dll-latest

Home page:
	http://sourceware.cygnus.com/pthreads-win32/

----
Ross Johnson
<rpj@ise.canberra.edu.au>