Two weird things here:
1. Define macro
NO_RECURSEin config.h if necessary; otherwise running test on data "testinput2" would fail with stack overflow. The current GnuWin32 PCRE 7.0 suffers from this problem.
2. Add a call to
_set_printf_count_output(1)at the beginning of
mainin pcregrep.c; by default VC CRT does not support the format "%n" and the program pcregrep.exe using such format would crash.