| 157 |
On both MinGW and Cygwin, PCRE should build correctly using: |
On both MinGW and Cygwin, PCRE should build correctly using: |
| 158 |
|
|
| 159 |
./configure && make && make install |
./configure && make && make install |
| 160 |
|
|
| 161 |
However, if you want to statically link your program against the .a file, you |
This should create two libraries called libpcre and libpcreposix, and, if you |
| 162 |
must define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() |
have enabled building the C++ wrapper, a third one called libpcrecpp. |
| 163 |
and pcre_free() exported functions will be declared __declspec(dllimport), with |
|
| 164 |
|
If you want to statically link your program against a non-dll .a file, you must |
| 165 |
|
define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc() and |
| 166 |
|
pcre_free() exported functions will be declared __declspec(dllimport), with |
| 167 |
unwanted results. |
unwanted results. |
| 168 |
|
|
| 169 |
Using Cygwin's compiler generates libraries and executables that depend on |
Using Cygwin's compiler generates libraries and executables that depend on |