| 8 |
The C++ wrapper functions |
The C++ wrapper functions |
| 9 |
Building for virtual Pascal |
Building for virtual Pascal |
| 10 |
Stack size in Windows environments |
Stack size in Windows environments |
| 11 |
|
Linking programs in Windows environments |
| 12 |
Comments about Win32 builds |
Comments about Win32 builds |
| 13 |
Building PCRE on Windows with CMake |
Building PCRE on Windows with CMake |
| 14 |
Use of relative paths with CMake on Windows |
Use of relative paths with CMake on Windows |
| 182 |
"pcrestack" documentation. |
"pcrestack" documentation. |
| 183 |
|
|
| 184 |
|
|
| 185 |
|
LINKING PROGRAMS IN WINDOWS ENVIRONMENTS |
| 186 |
|
|
| 187 |
|
If you want to statically link a program against a PCRE library in the form of |
| 188 |
|
a non-dll .a file, you must define PCRE_STATIC before including pcre.h, |
| 189 |
|
otherwise the pcre_malloc() and pcre_free() exported functions will be declared |
| 190 |
|
__declspec(dllimport), with unwanted results. |
| 191 |
|
|
| 192 |
|
|
| 193 |
COMMENTS ABOUT WIN32 BUILDS (see also "BUILDING PCRE WITH CMAKE" below) |
COMMENTS ABOUT WIN32 BUILDS (see also "BUILDING PCRE WITH CMAKE" below) |
| 194 |
|
|
| 195 |
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" |
| 229 |
releases of PCRE included the basic libpcre functions in libpcreposix. This no |
releases of PCRE included the basic libpcre functions in libpcreposix. This no |
| 230 |
longer happens.) |
longer happens.) |
| 231 |
|
|
| 232 |
If you want to statically link your program against a non-dll .a file, you must |
A user submitted a special-purpose patch that makes it easy to create |
| 233 |
define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and |
"pcre.dll" under mingw32 using the "msys" environment. It provides "pcre.dll" |
| 234 |
pcre_free() exported functions will be declared __declspec(dllimport), with |
as a special target. If you use this target, no other files are built, and in |
| 235 |
unwanted results. |
particular, the pcretest and pcregrep programs are not built. An example of how |
| 236 |
|
this might be used is: |
| 237 |
|
|
| 238 |
|
./configure --enable-utf --disable-cpp CFLAGS="-03 -s"; make pcre.dll |
| 239 |
|
|
| 240 |
Using Cygwin's compiler generates libraries and executables that depend on |
Using Cygwin's compiler generates libraries and executables that depend on |
| 241 |
cygwin1.dll. If a library that is generated this way is distributed, |
cygwin1.dll. If a library that is generated this way is distributed, |