[GRASS-dev] [osgeo4w-dev] regex-devel

Glynn Clements glynn at gclements.plus.com
Sat Feb 28 15:34:25 PST 2015


Jürgen E. Fischer wrote:

> > > Because it's a static library.
>  
> > yes, so it's seems to me that there is missing corresponding "regex"
> > package, right?
> 
> No, it's built as a static library, hence there is no DLL and therefore there's
> no need for a "regex" package, because there's nothing left it could contain.

It may be that Martin is using a different regex library (MinGW has
its own version, although it's not part of the base package).

I think this can also happen if the function is declared with
__declspec(dllimport) (which would suggest either using the wrong
version of <regex.h> or a need for a -D switch or #define).

AIUI, __declspec(dllimport) instructs the compiler to compile calls to
the function as an indirect function call, taking the address from the
__imp_* symbol in the program's import table. Import libraries provide
a normal function which just performs the indirect call.

-- 
Glynn Clements <glynn at gclements.plus.com>


More information about the grass-dev mailing list