[geos-devel] C API / DLL only?

Sandro Santilli strk at keybit.net
Tue Jul 3 00:30:33 PDT 2012


On Mon, Jul 02, 2012 at 01:44:09PM -0500, Chris Krycho @ GEOS wrote:

> I've just started work on an existing piece of in-house software that uses
> GEOS, which is built against the C API. So far so good, and it builds just
> fine that way. However, I was looking to see if there's a way to use the C
> API with a statically compiled library rather than the DLL, as that would
> substantially simply use of the in-house software. (It would be nice to be
> able to just distribute the executable, and not worry about passing around
> library files as well; there's no installer as it's just an internal tool.)

It should be possible to link the C-API statically with the C++ one, but make
sure not to take off the freedom of the user to modify the version of GEOS
compiled in as that would be a violation of its license (LGPL).
You would comply by also providing source code or linkable object modules.

--strk; 

  ,------o-. 
  |   __/  |    Delivering high quality PostGIS 2.1
  |  / 2.1 |    http://strk.keybit.net - http://vizzuality.com
  `-o------'



More information about the geos-devel mailing list