29
29
Alternative 1 (the old way): type "make test" in this directory.
30
Link against gc.a. With the most recent GC distributions
31
you may have to copy Makefile.direct to Makefile first.
32
33
Alternative 2 (the new way): type
33
34
"./configure --prefix=<dir>; make; make check; make install".
34
35
Link against <dir>/lib/libgc.a or <dir>/lib/libgc.so.
35
36
See README.autoconf for details
37
Under OS/2 or Windows 95, 98, Me, NT, or 2000:
38
Under Windows 95, 98, Me, NT, or 2000:
38
39
copy the appropriate makefile to MAKEFILE, read it, and type "nmake test".
39
40
(Under Windows, this assumes you have Microsoft command-line tools
40
installed, and have DOS configured with enough environment space to run them.)
41
installed, and suitably configured.)
41
42
Read the machine specific README in the doc directory if one exists.
42
The only way to develop code with the collector for Windows 3.1 is
43
to develop under Windows NT or 95+, and then to use win32S.
45
If you need thread support, you will need to either follow the special
46
platform-dependent instructions (win32), or add a suitable define
47
option as described in Makefile.
49
If you wish to use the cord (structured string) library, type
50
"make cords". (This requires an ANSI C compiler. You may need
51
to redefine CC in the Makefile. The CORD_printf implementation in
52
cordprnt.c is known to be less than perfectly portable. The rest
53
of the package should still work.)
55
If you wish to use the collector from C++, type
56
"make c++". These add further files to gc.a and to the include
57
subdirectory. See cord/cord.h and include/gc_cpp.h.
44
If you need thread support, you will need to follow the special
45
platform-dependent instructions (win32), or define GC_THREADS
46
as described in Makefile (Makefile.direct), or possibly use
47
--enable-threads=posix when running the configure script.
49
If you wish to use the cord (structured string) library with the stand-alone
50
Makefile.direct, type "make cords", after copying to "Makefile".
51
(This requires an ANSI C compiler. You may
52
need to redefine CC in the Makefile. The CORD_printf implementation in
53
cordprnt.c is known to be less than perfectly portable. The rest of the
54
package should still work.)
56
If you wish to use the collector from C++, type "make c++", or use
57
--enable-cplusplus with the configure script. With Makefile.direct,
58
hese add further files to gc.a and to the include subdirectory. With the
59
alternat build process,this generates libgccpp.
60
See cord/cord.h and include/gc_cpp.h.
60
63
Include "gc.h" from the include subdirectory. Link against the