/[pcre]/code/trunk/pcredemo.c
ViewVC logotype

Diff of /code/trunk/pcredemo.c

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

revision 476 by ph10, Fri Sep 11 10:21:02 2009 UTC revision 477 by ph10, Sun Jan 3 15:53:09 2010 UTC
# Line 7  of calling the PCRE regular expression l Line 7  of calling the PCRE regular expression l
7  pcresample documentation for a short discussion ("man pcresample" if you have  pcresample documentation for a short discussion ("man pcresample" if you have
8  the PCRE man pages installed).  the PCRE man pages installed).
9    
10  In Unix-like environments, compile this program thuswise:  In Unix-like environments, if PCRE is installed in your standard system
11    libraries, you should be able to compile this program using this command:
12    
13    gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \  gcc -Wall pcredemo.c -lpcre -o pcredemo
14      -R/usr/local/lib -lpcre  
15    If PCRE is not installed in a standard place, it is likely to be installed with
16    support for the pkg-config mechanism. If you have pkg-config, you can compile
17    this program using this command:
18    
19    gcc -Wall pcredemo.c `pkg-config --cflags --libs libpcre` -o pcredemo
20    
21    If you do not have pkg-config, you may have to use this:
22    
23    gcc -Wall pcredemo.c -I/usr/local/include -L/usr/local/lib \
24      -R/usr/local/lib -lpcre -o pcredemo
25    
26  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
27  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  
28  systems (e.g. Solaris) use the -R option.  systems (e.g. Solaris) use the -R option.
29    
30  Building under Windows:  Building under Windows:

Legend:
Removed from v.476  
changed lines
  Added in v.477

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12