[TRE-general] cygwin problem

Ville Laurikari ville at laurikari.net
Wed May 10 21:42:19 EEST 2006


On Thu, May 11, 2006 at 01:36:00AM +1000, skaller wrote:
> I just checked and --enable-static doesn't fix the real problem,
> which is that shared libraries aren't being built at all.

It turned out some things required for building DLLs were missing from
the configure script and makefiles.  I added them and it seems that it
works now.

If you want to give it a go, get the latest patches from the darcs
repo.  Remember to use libtool 1.5.22 or newer, lest you run to the
--enable-static problem (and possibly others).

> Under current Cygwin, shared libraries work the same as on Linux
> EXCEPT that they are named cygxxxx.dll. By convention,
> 
> 	cygtre.dll
> 
> would be the name (cyg instead of lib, denoting dependence on 
> cygwin1.dll). 

This is not entirely correct.  On Windows, two files instead of one
are needed for shared libraries.  One is a dll file (in the bin
directory) and the other is a library file.  

A "make install" on MinGW installs
  bin/libtre-4.dll
  lib/libtre.dll.a

Libtool includes the major version number in the DLL file name, since
Windows does not have real DLL versioning like Unixes typically do.
The .a file is needed to compile applications against the DLL.  At
runtime, only the DLL is needed.

-- 
http://www.iki.fi/vl/


More information about the TRE-general mailing list