Quantcast
Channel: Active questions tagged ubuntu - Stack Overflow
Viewing all articles
Browse latest Browse all 7074

Undefined reference when trying to use PCRE with C++?

$
0
0

I want to use PCRE in C++, but have so far been unsuccessful in getting it to work.

I'm running Ubuntu and have in my latest attempt tried to install the libpcre3-dev package (I should mention that I am rather new to Linux too)

I included PCRE with

#include <pcrecpp.h>

currently I'm getting the error "undefined reference to pcrecpp::RE::no_arg" whenever I try to define an RE object

pcrecpp::RE reg("fys|smi|int|fok|arv|kar");

What am I doing wrong?

And I do know that C++ has a regex library, but since I'm used to PCRE from PHP, that is what I'm going for.


Viewing all articles
Browse latest Browse all 7074

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>