/[pcre]/code/trunk/doc/pcresample.3
ViewVC logotype

Diff of /code/trunk/doc/pcresample.3

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

revision 461 by ph10, Mon Oct 5 10:59:35 2009 UTC revision 525 by ph10, Wed May 26 10:50:24 2010 UTC
# Line 39  like this: Line 39  like this:
39    gcc -o pcredemo -I/usr/local/include pcredemo.c \e    gcc -o pcredemo -I/usr/local/include pcredemo.c \e
40        -L/usr/local/lib -lpcre        -L/usr/local/lib -lpcre
41  .sp  .sp
42  Once you have compiled the demonstration program, you can run simple tests like  In a Windows environment, if you want to statically link the program against a
43  this:  non-dll \fBpcre.a\fP file, you must uncomment the line that defines PCRE_STATIC
44    before including \fBpcre.h\fP, because otherwise the \fBpcre_malloc()\fP and
45    \fBpcre_free()\fP exported functions will be declared
46    \fB__declspec(dllimport)\fP, with unwanted results.
47    .P
48    Once you have compiled and linked the demonstration program, you can run simple
49    tests like this:
50  .sp  .sp
51    ./pcredemo 'cat|dog' 'the cat sat on the mat'    ./pcredemo 'cat|dog' 'the cat sat on the mat'
52    ./pcredemo -g 'cat|dog' 'the dog sat on the cat'    ./pcredemo -g 'cat|dog' 'the dog sat on the cat'
# Line 87  Cambridge CB2 3QH, England. Line 93  Cambridge CB2 3QH, England.
93  .rs  .rs
94  .sp  .sp
95  .nf  .nf
96  Last updated: 30 September 2009  Last updated: 26 May 2010
97  Copyright (c) 1997-2009 University of Cambridge.  Copyright (c) 1997-2010 University of Cambridge.
98  .fi  .fi

Legend:
Removed from v.461  
changed lines
  Added in v.525

  ViewVC Help
Powered by ViewVC 1.1.5