| 22 |
indented commands are suggestions from Mark Tetrode as to which commands you |
indented commands are suggestions from Mark Tetrode as to which commands you |
| 23 |
might use on a Windows system to build a static library. |
might use on a Windows system to build a static library. |
| 24 |
|
|
| 25 |
(1) Copy or rename the file config.in as config.h, and change the macros that |
(1) Copy or rename the file config.h.in as config.h, and change the macros that |
| 26 |
define HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0. |
define HAVE_STRERROR and HAVE_MEMMOVE to define them as 1 rather than 0. |
| 27 |
Unfortunately, because of the way Unix autoconf works, the default setting has |
Unfortunately, because of the way Unix autoconf works, the default setting has |
| 28 |
to be 0. You may also want to make changes to other macros in config.h. In |
to be 0. You may also want to make changes to other macros in config.h. In |
| 31 |
your compiler gives to '\n'. |
your compiler gives to '\n'. |
| 32 |
|
|
| 33 |
rem Mark Tetrode's commands |
rem Mark Tetrode's commands |
| 34 |
copy config.in config.h |
copy config.h.in config.h |
| 35 |
rem Use write, because notepad cannot handle UNIX files. Change values. |
rem Use write, because notepad cannot handle UNIX files. Change values. |
| 36 |
write config.h |
write config.h |
| 37 |
|
|
| 56 |
pcre_globals.c |
pcre_globals.c |
| 57 |
pcre_info.c |
pcre_info.c |
| 58 |
pcre_maketables.c |
pcre_maketables.c |
| 59 |
|
pcre_newline.c |
| 60 |
pcre_ord2utf8.c |
pcre_ord2utf8.c |
| 61 |
pcre_refcount.c |
pcre_refcount.c |
| 62 |
pcre_study.c |
pcre_study.c |
| 94 |
cl /F0x400000 pcretest.c pcre.lib pcreposix.lib |
cl /F0x400000 pcretest.c pcre.lib pcreposix.lib |
| 95 |
|
|
| 96 |
(6) Run pcretest on the testinput files in the testdata directory, and check |
(6) Run pcretest on the testinput files in the testdata directory, and check |
| 97 |
that the output matches the corresponding testoutput files. You must use the |
that the output matches the corresponding testoutput files. Note that the |
| 98 |
-i option when checking testinput2. Note that the supplied files are in Unix |
supplied files are in Unix format, with just LF characters as line terminators. |
| 99 |
format, with just LF characters as line terminators. You may need to edit them |
You may need to edit them to change this if your system uses a different |
| 100 |
to change this if your system uses a different convention. |
convention. |
| 101 |
|
|
| 102 |
rem Mark Tetrode's commands |
rem Mark Tetrode's commands |
| 103 |
pcretest testdata\testinput1 testdata\myoutput1 |
pcretest testdata\testinput1 testdata\myoutput1 |
| 136 |
Makefile.in to create Makefile, substituting suitable values for the variables |
Makefile.in to create Makefile, substituting suitable values for the variables |
| 137 |
at the head of the file. |
at the head of the file. |
| 138 |
|
|
| 139 |
|
Michael Roy sent these comments about building PCRE under Windows with BCC5.5: |
| 140 |
|
|
| 141 |
|
Some of the core BCC libraries have a version of PCRE from 1998 built in, |
| 142 |
|
which can lead to pcre_exec() giving an erroneous PCRE_ERROR_NULL from a |
| 143 |
|
version mismatch. I'm including an easy workaround below, if you'd like to |
| 144 |
|
include it in the non-unix instructions: |
| 145 |
|
|
| 146 |
|
When linking a project with BCC5.5, pcre.lib must be included before any of |
| 147 |
|
the libraries cw32.lib, cw32i.lib, cw32mt.lib, and cw32mti.lib on the command |
| 148 |
|
line. |
| 149 |
|
|
| 150 |
Some help in building a Win32 DLL of PCRE in GnuWin32 environments was |
Some help in building a Win32 DLL of PCRE in GnuWin32 environments was |
| 151 |
contributed by Paul Sokolovsky. These environments are Mingw32 |
contributed by Paul Sokolovsky. These environments are Mingw32 |
| 152 |
(http://www.xraylith.wisc.edu/~khan/software/gnu-win32/) and CygWin |
(http://www.xraylith.wisc.edu/~khan/software/gnu-win32/) and CygWin |