On 05/03/12 01:20, djd wrote:
> Yes, there is a libregex.a. However it is `suspicious' as it is
> exactly the same size as libgnurx.dll.a. I just now tried a binary
> compare (cmp libregex.a libgnurx.dll.a) - they are identical???
> These came in one tar file (mingw-libgnurx-2.5.1-dev.tar.gz) and I
> think the source was Source Forge..
It's not one of our officially supported packages, but I guess you've
found it amongst our collection of unsupported user-contributed packages.
> It would seem someone has merely copied libgnurx.dll.a to libregex.a
> in order to avoid gcc warnings when the -static switch is used, which
> is not `nice'.
Nice or not, it's what the original contributor intended; he says as
much, in the README file within the corresponding source package.
> One may have tested, thinking the application was `stand-alone' and
> distribute it to others who know nothing about mingw. But, what was
> thought to work, no longer works for those others.
No, that isn't the case at all. As that README makes very clear, the
DLL is called libgnurx-0.dll to introduce DLL versioning, while also
avoiding potential name collisions with incompatible offerings from the
GnuWin32 project; libgnurx.dll.a is the naturally named import library
to accompany it, and libregex.a is a COPY of that same import library,
to accommodate build scripts or makefiles which link with -lregex.
It is perfectly clear that this package was never intended to support
Now, had I been the contributor, I would likely have named the second
import library as libregex.dll.a, (which still provides the capability
for linking with -lregex), and could then have offered libregex.a as a
statically linkable library. However, this package may be a throwback
to a time when this duality of naming was not supported; for whatever
reason, the original contributor chose to offer only a dynamically
>> If my guess is correct, you need to download and install
>> mingw-libgnurx-X.Y.Z-dev package from the MinGW site.
No; that's likely just what you've got already. You need to download
the source package, and rebuild as a statically linkable library.
FWIW, this all seems like a lot of unnecessary effort, just to avoid
packing the EXE and all of it's DLL requisites into a single archive, so
they can be installed as a single unit.
> I assume by `MinGW site, you mean `Source Forge' which is where I am
> fairy[sic] sure I obtained the regex libraries.
All official (and user-contributed) MinGW downloads are hosted on the
MinGW project pages at SourceForge, so yes, that's what Eli means.
> Nevertheless, I will look for another MinGW site.
There isn't one, other than MinGW.org, which will refer you back to the
SourceForge host, for downloads.