/[pcre]/code/trunk/doc/html/pcredemo.html
ViewVC logotype

Diff of /code/trunk/doc/html/pcredemo.html

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

revision 486 by ph10, Fri Sep 18 19:12:35 2009 UTC revision 487 by ph10, Wed Jan 6 10:26:55 2010 UTC
# Line 24  of calling the PCRE regular expression l Line 24  of calling the PCRE regular expression l
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:

Legend:
Removed from v.486  
changed lines
  Added in v.487

webmaster@exim.org
ViewVC Help
Powered by ViewVC 1.1.12