Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » U++ Library : Other (not classified elsewhere) » pregexp isn't compiling complaining about undefined symbols
pregexp isn't compiling complaining about undefined symbols [message #21071] Fri, 01 May 2009 01:25 Go to previous message
mingodad is currently offline  mingodad
Messages: 53
Registered: February 2008
Location: Spain
Member
I've got the latest ultimate++ and tried to use the plugin/pcre but it doesn't work it compiles but when linking complain about undefined _imp_pcre_free, _imp_pcre_exec, ...

I managed to get it working although in a not usual way.

#ifndef _plugin_pcre_pcre_h_
#define _plugin_pcre_pcre_h_

#include <Core/Core.h>

#define PCRE_EXP_DECL extern <======== adding this line
//before include pcre headers
#include "lib/pcre.h"

NAMESPACE_UPP

#include "RegExp.h"

END_UPP_NAMESPACE

#endif

Also added one more function to it:

void RegExp::GetMatchPos(int i, int& iPosStart, int& iPosAfterEnd)
{
i = 2 * (i + 1);
iPosStart = pos[i];
iPosAfterEnd = pos[i + 1];
}


 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: CtrlCore.h const correctnes fixes
Next Topic: GCC warnings patch - mega mix 3 - signed/unsigned compares and stuff (SVN r2960)
Goto Forum:
  


Current Time: Thu Mar 28 10:20:37 CET 2024

Total time taken to generate the page: 0.01271 seconds