Feeding the Linker and Preprocessor

The command pcre-config provides compiler and linker flags that you can use for your makefiles. For example:
$ pcre-config --cflags

prints

-I/usr/include/pcre

on my system. If the sample code fails with linker or preprocessor errors, update the makefile with the output of pcre-config.