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 |
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];
}
|
|
|
Goto Forum:
Current Time: Sun Apr 28 04:13:48 CEST 2024
Total time taken to generate the page: 0.09681 seconds
|