Comment 10 for bug 1361610

Revision history for this message
Arne de Bruijn (arbruijn) wrote :

I was afraid so.

You could try using the pcre.h header from the embedded pcre in Poco (apt-get source libPoco-dev, poco-1.3.6p1/Foundation/src/pcre.h), that I've attached as pocopcre.h and not linking to the system pcre (just g++ regex.cc -lPocoFoundation).

That seems to work for me:
Poco POCO_VERSION on Linux 3.13.0-24-generic @ x86_64
Poco match 1234567890 to pattern ^[0-9]{10} matches? yes
Poco match 123456789 to pattern ^[0-9]{10} matches? no
PCRE 7.8 2008-09-05
PCRE match 1234567890 to pattern ^[0-9]{10} matches? yes
PRCE match 123456789 to pattern ^[0-9]{10} matches? no

If you need a more recent pcre you need to change Poco somehow to not expose the pcre functions, for example by renaming them, adding a namespace or using __attribute__ ((visibility ("hidden"))). Maybe the poco developers can help you with that.