$ 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.