Hello
I work on windows plateforme and mingw, I linked the pcre.lib library V7.0 and durint compilation, I have this message :
"undefined reference to __imp__pcre_free"
I don't manage to solve the problem, has anybody an idea ?
thx
RV
Hi !
This forum is English only.
You probably need to add the library implementing __imp__pcre_free to the linker project settings.
Dje
oups sorry,
Yes but I thought that the definition of pcre_free is in pcre.lib cause it is declared in pcre.h.
I linked it but it doesn't work, only for this function, the other function pcre_xxx don't seem to pose problems
?.? :(
Did you read the documentation?
QuoteIf you want to statically link against the .a file, you must define PCRE_STATIC before including pcre.h, otherwise the pcre_malloc and pcre_free exported functions will be declared __declspec(dllimport), with hilarious results.
ho, so, I'll do it
I didn't read the documentation, pcre is wellknown library, it is amazing that we have to do some stuff like that...
anyway
great thanks, I'll try that
Quote from: rv2931 on November 18, 2008, 09:40:41 AM
ho, so, I'll do it
I didn't read the documentation, pcre is wellknown library, it is amazing that we have to do some stuff like that...
anyway
great thanks, I'll try that
If you wish to become a real Windows programmer, you will find out that reading the documentation is needed to use any slightly complex Windows Library shipped as an DLL because of import/export issues.
Tim S