#24 /usr/bin/ld: Undefined symbols

open
nobody
None
5
2006-08-05
2006-08-05
Anonymous
No

Whenever I try to compile a simple C++ code containing
PCRE, I get an error to do with ld.

/usr/bin/ld: Undefined symbols:
pcrecpp::RE::Init(char const*, pcrecpp::RE_Options const*)
pcrecpp::RE::~RE()
collect2: ld returned 1 exit status

And here is the code:

#include <pcrecpp.h>

int main ( )
{
pcrecpp::RE re("h.*o");
}

Any help would be great. Contact me at acoolie@gmail.com

Discussion


Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks