[Qgis-developer] C++ vs C API

Jürgen E. Fischer jef at norbit.de
Mon Jul 21 04:52:43 EDT 2008


Hi Paolo,

On Mon, 21. Jul 2008 at 10:39:17 +0200, Paolo Cavallini wrote:
> AFAIK, C++ API support was recently removed by FrankW in favour of the
> more stable C support.

That's just the GDAL API.  We still use the GEOS C++ API.

> This should have removed the need of recompiling qgis+gdal at every
> new version, but this does not appear the case (in deb, for instance,
> qgis crashes at startup with new gdal, unless one recompiles it
> without optimization).  Am I missing something? Or did C++ interface
> crept in sometimes? 

I don't think the GDAL issue is a ABI problem.  The ABI shouldn't change
if you compile with or without optimization.  And should also only be a
problem when you mix binaries produced by different compiler (versions).

I suspect that this is a more general GCC 4.3 optimization problem -
IIRC Debian also currently compiles mapserver w/o optimization on GCC
4.3, because of that.

BTW did you verify that on platforms other than amd64?


Jürgen

-- 
Jürgen E. Fischer         norBIT GmbH               Tel. +49-4931-918175-0
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 Qgis-developer mailing list