| 24 |
pcresample documentation for a short discussion ("man pcresample" if you have |
pcresample documentation for a short discussion ("man pcresample" if you have |
| 25 |
the PCRE man pages installed). |
the PCRE man pages installed). |
| 26 |
|
|
| 27 |
In Unix-like environments, compile this program thuswise: |
In Unix-like environments, if PCRE is installed in your standard system |
| 28 |
|
libraries, you should be able to compile this program using this command: |
| 29 |
|
|
| 30 |
gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \ |
gcc -Wall pcredemo.c -lpcre -o pcredemo |
| 31 |
-R/usr/local/lib -lpcre |
|
| 32 |
|
If PCRE is not installed in a standard place, it is likely to be installed with |
| 33 |
|
support for the pkg-config mechanism. If you have pkg-config, you can compile |
| 34 |
|
this program using this command: |
| 35 |
|
|
| 36 |
|
gcc -Wall pcredemo.c `pkg-config --cflags --libs libpcre` -o pcredemo |
| 37 |
|
|
| 38 |
|
If you do not have pkg-config, you may have to use this: |
| 39 |
|
|
| 40 |
|
gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \ |
| 41 |
|
-R/usr/local/lib -lpcre -o pcredemo |
| 42 |
|
|
| 43 |
Replace "/usr/local/include" and "/usr/local/lib" with wherever the include and |
Replace "/usr/local/include" and "/usr/local/lib" with wherever the include and |
| 44 |
library files for PCRE are installed on your system. You don't need -I and -L |
library files for PCRE are installed on your system. Only some operating |
|
if PCRE is installed in the standard system libraries. Only some operating |
|
| 45 |
systems (e.g. Solaris) use the -R option. |
systems (e.g. Solaris) use the -R option. |
| 46 |
|
|
| 47 |
Building under Windows: |
Building under Windows: |