4 |
This document contains the following sections: |
This document contains the following sections: |
5 |
|
|
6 |
General |
General |
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 |
Comments about Win32 builds |
Comments about Win32 builds |
11 |
Building under Windows with BCC5.5 |
Building under Windows with BCC5.5 |
12 |
Building PCRE on OpenVMS |
Building PCRE on OpenVMS |
13 |
|
|
14 |
|
|
15 |
GENERAL |
GENERAL |
125 |
|
|
126 |
There are two ways of building PCRE on Windows systems: using MinGW or using |
There are two ways of building PCRE on Windows systems: using MinGW or using |
127 |
Cygwin. These are not at all the same thing, and are completely different from |
Cygwin. These are not at all the same thing, and are completely different from |
128 |
each other. |
each other. |
129 |
|
|
130 |
The MinGW home page (http://www.mingw.org/) says this: |
The MinGW home page (http://www.mingw.org/) says this: |
131 |
|
|
136 |
|
|
137 |
The Cygwin home page (http://www.cygwin.com/) says this: |
The Cygwin home page (http://www.cygwin.com/) says this: |
138 |
|
|
139 |
Cygwin is a Linux-like environment for Windows. It consists of two parts: |
Cygwin is a Linux-like environment for Windows. It consists of two parts: |
140 |
|
|
141 |
. A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing |
. A DLL (cygwin1.dll) which acts as a Linux API emulation layer providing |
142 |
substantial Linux API functionality |
substantial Linux API functionality |
143 |
|
|
144 |
. A collection of tools which provide Linux look and feel. |
. A collection of tools which provide Linux look and feel. |
145 |
|
|
146 |
The Cygwin DLL currently works with all recent, commercially released x86 32 |
The Cygwin DLL currently works with all recent, commercially released x86 32 |
147 |
bit and 64 bit versions of Windows, with the exception of Windows CE. |
bit and 64 bit versions of Windows, with the exception of Windows CE. |
148 |
|
|
149 |
On both MinGW and Cygwin, PCRE should build correctly using: |
On both MinGW and Cygwin, PCRE should build correctly using: |
150 |
|
|
151 |
./configure && make && make install |
./configure && make && make install |
152 |
|
|
153 |
However, if you want to statically link your program against the .a file, you |
However, if you want to statically link your program against the .a file, you |
154 |
must define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() |
must define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() |
155 |
and pcre_free() exported functions will be declared __declspec(dllimport), with |
and pcre_free() exported functions will be declared __declspec(dllimport), with |
173 |
front end to MinGW's gcc (if you install Cygwin's gcc, you get both Cygwin's |
front end to MinGW's gcc (if you install Cygwin's gcc, you get both Cygwin's |
174 |
gcc and MinGW's gcc). So, a user can: |
gcc and MinGW's gcc). So, a user can: |
175 |
|
|
176 |
. Build native binaries by using MinGW or by getting Cygwin and using |
. Build native binaries by using MinGW or by getting Cygwin and using |
177 |
-mno-cygwin. |
-mno-cygwin. |
178 |
|
|
179 |
. Build binaries that depend on cygwin1.dll by using Cygwin with the normal |
. Build binaries that depend on cygwin1.dll by using Cygwin with the normal |
180 |
compiler flags. |
compiler flags. |
181 |
|
|
182 |
The test files that are supplied with PCRE are in Unix format, with LF |
The test files that are supplied with PCRE are in Unix format, with LF |
183 |
characters as line terminators. It may be necessary to change the line |
characters as line terminators. It may be necessary to change the line |
184 |
terminators in order to get some of the tests to work. We hope to improves |
terminators in order to get some of the tests to work. We hope to improves |
185 |
things in this area in future. |
things in this area in future. |
186 |
|
|
187 |
|
|