15 |
successfully on any system that has a Standard C compiler and library. |
successfully on any system that has a Standard C compiler and library. |
16 |
|
|
17 |
|
|
18 |
GENERIC INSTRUCTIONS |
GENERIC INSTRUCTIONS FOR THE C LIBRARY |
19 |
|
|
20 |
The following are generic comments about building PCRE. The interspersed |
The following are generic comments about building PCRE. The interspersed |
21 |
indented commands are suggestions from Mark Tetrode as to which commands you |
indented commands are suggestions from Mark Tetrode as to which commands you |
54 |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP dftables.c |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP dftables.c |
55 |
dftables.exe chartables.c |
dftables.exe chartables.c |
56 |
|
|
57 |
(4) Compile maketables.c, get.c, study.c and pcre.c and link them all |
(4) Compile the following source files: |
|
together into an object library in whichever form your system keeps such |
|
|
libraries. This is the pcre library (chartables.c is included by means of an |
|
|
#include directive). If your system has static and shared libraries, you may |
|
|
have to do this once for each type. |
|
58 |
|
|
59 |
|
pcre_chartables.c |
60 |
|
pcre_compile.c |
61 |
|
pcre_config.c |
62 |
|
pcre_dfa_exec.c |
63 |
|
pcre_exec.c |
64 |
|
pcre_fullinfo.c |
65 |
|
pcre_get.c |
66 |
|
pcre_globals.c |
67 |
|
pcre_info.c |
68 |
|
pcre_maketables.c |
69 |
|
pcre_ord2utf8.c |
70 |
|
pcre_printint.c |
71 |
|
pcre_refcount.c |
72 |
|
pcre_study.c |
73 |
|
pcre_tables.c |
74 |
|
pcre_try_flipped.c |
75 |
|
pcre_ucp_findchar.c |
76 |
|
pcre_valid_utf8.c |
77 |
|
pcre_version.c |
78 |
|
pcre_xclass.c |
79 |
|
|
80 |
|
and link them all together into an object library in whichever form your system |
81 |
|
keeps such libraries. This is the pcre C library. If your system has static and |
82 |
|
shared libraries, you may have to do this once for each type. |
83 |
|
|
84 |
|
rem These comments are out-of-date, referring to a previous release which |
85 |
|
rem had fewer source files. Replace with the file names from above. |
86 |
rem Mark Tetrode's commands, for a static library |
rem Mark Tetrode's commands, for a static library |
87 |
rem Compile & lib |
rem Compile & lib |
88 |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c |
cl -DSUPPORT_UTF8 -DSUPPORT_UCP -DPOSIX_MALLOC_THRESHOLD=10 /c maketables.c get.c study.c pcre.c |
123 |
pcretest testdata\testinput6 testdata\myoutput6 |
pcretest testdata\testinput6 testdata\myoutput6 |
124 |
windiff testdata\testoutput6 testdata\myoutput6 |
windiff testdata\testoutput6 testdata\myoutput6 |
125 |
|
|
126 |
|
Note that there are now three more tests (7, 8, 9) that did not exist when Mark |
127 |
|
wrote those comments. The test the new pcre_dfa_exec() function. |
128 |
|
|
129 |
|
|
130 |
|
THE C++ WRAPPER FUNCTIONS |
131 |
|
|
132 |
|
The PCRE distribution now contains some C++ wrapper functions and tests, |
133 |
|
contributed by Google Inc. On a system that can use "configure" and "make", |
134 |
|
the functions are automatically built into a library called pcrecpp. It should |
135 |
|
be straightforward to compile the .cc files manually on other systems. The |
136 |
|
files called xxx_unittest.cc are test programs for each of the corresponding |
137 |
|
xxx.cc files. |
138 |
|
|
139 |
|
|
140 |
FURTHER REMARKS |
FURTHER REMARKS |
141 |
|
|
212 |
|
|
213 |
BUILDING PCRE ON OPENVMS |
BUILDING PCRE ON OPENVMS |
214 |
|
|
215 |
Dan Mooney sent the following comments about building PCRE on OpenVMS: |
Dan Mooney sent the following comments about building PCRE on OpenVMS. They |
216 |
|
relate to an older version of PCRE that used fewer source files, so the exact |
217 |
|
commands will need changing. See the current list of source files above. |
218 |
|
|
219 |
"It was quite easy to compile and link the library. I don't have a formal |
"It was quite easy to compile and link the library. I don't have a formal |
220 |
make file but the attached file [reproduced below] contains the OpenVMS DCL |
make file but the attached file [reproduced below] contains the OpenVMS DCL |