[geos-devel] Using the GEOS C++ interface on Windows (Visual Studio)

Jürgen E. Fischer jef at norbit.de
Fri Mar 20 04:59:23 EDT 2009

Hi Ragi,

On Thu, 19. Mar 2009 at 13:23:23 -0700, Ragi Y. Burhum wrote:
> For about six months now, we (the company I am working for) have been
> using the GEOS C++ API on Linux and Mac platforms without a problem
> for an application we are writing. Last week, we started porting that
> application to Windows (Visual Studio IDE) and when it came down to
> linking I realized that only the GEOS C API had the GEOS_DLL contructs
> to export the symbols.

I've run into this in the past too.  I seems that's intentional as C++
ABI are everything but stable on Windows - you need to compile the C++
DLL with the same compiler that you plan to use it with to be able to
use it reliably.  But that kind of ruins the point of DLLs.  C-APIs
don't have that problem.


Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-20
Dipl.-Inf. (FH)           Rheinstraße 13            Fax. +49-4931-918175-50
Software Engineer         D-26506 Norden               http://www.norbit.de

norBIT Gesellschaft fuer Unternehmensberatung und Informationssysteme mbH
Rheinstrasse 13, 26506 Norden
GF: Jelto Buurman, HR: Amtsgericht Emden, HRB 5502

More information about the geos-devel mailing list