/[pcre]/code/trunk/NON-UNIX-USE
ViewVC logotype

Diff of /code/trunk/NON-UNIX-USE

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 188 by ph10, Thu Jul 5 11:49:44 2007 UTC revision 198 by ph10, Tue Jul 31 11:11:23 2007 UTC
# Line 7  This document contains the following sec Line 7  This document contains the following sec
7    Generic instructions for the PCRE C library    Generic instructions for the PCRE C library
8    The C++ wrapper functions    The C++ wrapper functions
9    Building for virtual Pascal    Building for virtual Pascal
10      Stack size in Windows environments
11    Comments about Win32 builds    Comments about Win32 builds
12    Building under Windows with BCC5.5    Building under Windows with BCC5.5
13    Building PCRE on OpenVMS    Building PCRE on OpenVMS
# Line 42  The following are generic comments about Line 43  The following are generic comments about
43       settings that it contains to whatever is appropriate for your environment.       settings that it contains to whatever is appropriate for your environment.
44       In particular, if you want to force a specific value for newline, you can       In particular, if you want to force a specific value for newline, you can
45       define the NEWLINE macro.       define the NEWLINE macro.
46    
47       An alternative approach is not to edit config.h, but to use -D on the       An alternative approach is not to edit config.h, but to use -D on the
48       compiler command line to make any changes that you need.       compiler command line to make any changes that you need.
49    
50       NOTE: There have been occasions when the way in which certain parameters       NOTE: There have been occasions when the way in which certain parameters
51       in config.h are used has changed between releases. (In the configure/make       in config.h are used has changed between releases. (In the configure/make
52       world, this is handled automatically.) When upgrading to a new release,       world, this is handled automatically.) When upgrading to a new release,
53       you are strongly advised to review config.h.generic before re-using what       you are strongly advised to review config.h.generic before re-using what
54       you had previously.       you had previously.
55    
56   (2) Copy or rename the file pcre.h.generic as pcre.h.   (2) Copy or rename the file pcre.h.generic as pcre.h.
57    
58   (3) EITHER:   (3) EITHER:
59         Copy or rename file pcre_chartables.c.dist as pcre_chartables.c.         Copy or rename file pcre_chartables.c.dist as pcre_chartables.c.
60    
61       OR:       OR:
62         Compile dftables.c as a stand-alone program, and then run it with the         Compile dftables.c as a stand-alone program, and then run it with the
63         single argument "pcre_chartables.c". This generates a set of standard         single argument "pcre_chartables.c". This generates a set of standard
# Line 65  The following are generic comments about Line 66  The following are generic comments about
66         that is specified by LC_xxx environment variables, add the -L option to         that is specified by LC_xxx environment variables, add the -L option to
67         the dftables command. You must use this method if you are building on         the dftables command. You must use this method if you are building on
68         a system that uses EBCDIC code.         a system that uses EBCDIC code.
69    
70       The tables in pcre_chartables.c are defaults. The caller of PCRE can       The tables in pcre_chartables.c are defaults. The caller of PCRE can
71       specify alternative tables at run time.       specify alternative tables at run time.
72    
73   (4) Ensure that you have the following header files:   (4) Ensure that you have the following header files:
74    
75         pcre_internal.h         pcre_internal.h
76         ucp.h         ucp.h
77         ucpinternal.h         ucpinternal.h
78         ucptable.h         ucptable.h
79    
80   (5) Also ensure that you have the following file, which is #included as source   (5) Also ensure that you have the following file, which is #included as source
81       when building a debugging version of PCRE and is also used by pcretest.       when building a debugging version of PCRE and is also used by pcretest.
82    
83         pcre_printint.src         pcre_printint.src
84    
85   (6) Compile the following source files:   (6) Compile the following source files:
86    
87         pcre_chartables.c         pcre_chartables.c
88         pcre_compile.c         pcre_compile.c
89         pcre_config.c         pcre_config.c
# Line 103  The following are generic comments about Line 104  The following are generic comments about
104         pcre_valid_utf8.c         pcre_valid_utf8.c
105         pcre_version.c         pcre_version.c
106         pcre_xclass.c         pcre_xclass.c
107    
108   (7) Now link all the compiled code into an object library in whichever form   (7) Now link all the compiled code into an object library in whichever form
109       your system keeps such libraries. This is the basic PCRE C library. If       your system keeps such libraries. This is the basic PCRE C library. If
110       your system has static and shared libraries, you may have to do this once       your system has static and shared libraries, you may have to do this once
111       for each type.       for each type.
112    
113   (8) Similarly, compile pcreposix.c and link the result (on its own) as the   (8) Similarly, compile pcreposix.c and link the result (on its own) as the
114       pcreposix library.       pcreposix library.
115    
# Line 144  additional files. The following files in Line 145  additional files. The following files in
145  for use with VP/Borland: makevp_c.txt, makevp_l.txt, makevp.bat, pcregexp.pas.  for use with VP/Borland: makevp_c.txt, makevp_l.txt, makevp.bat, pcregexp.pas.
146    
147    
148    STACK SIZE IN WINDOWS ENVIRONMENTS
149    
150    The default processor stack size of 1Mb in some Windows environments is too
151    small for matching patterns that need much recursion. In particular, test 2 may
152    fail because of this. Normally, running out of stack causes a crash, but there
153    have been cases where the test program has just died silently. See your linker
154    documentation for how to increase stack size if you experience problems. The
155    Linux default of 8Mb is a reasonable choice for the stack, though even that can
156    be too small for some pattern/subject combinations. There is more about stack
157    usage in the "pcrestack" documentation.
158    
159    
160  COMMENTS ABOUT WIN32 BUILDS  COMMENTS ABOUT WIN32 BUILDS
161    
162  There are two ways of building PCRE using the "configure, make, make install"  There are two ways of building PCRE using the "configure, make, make install"

Legend:
Removed from v.188  
changed lines
  Added in v.198

  ViewVC Help
Powered by ViewVC 1.1.5