[geos-devel] Building GEOS with GDAL

Frank Warmerdam warmerdam at pobox.com
Wed Nov 15 09:43:07 EST 2006


strk at refractions.net wrote:
> On Tue, Nov 14, 2006 at 10:06:33AM -0500, Frank Warmerdam wrote:
> 
>>> Can you try ?
>> Strk,
>>
>> That is correct.  The GEOS_DLL specifier has to appear after the main
>> return type, but before pointer modifiers.
> 
> Sorry, I don't understand, which one is correct ?
> 
> 1: extern char GEOS_DLL *GEOSGeomToWKT(const GEOSGeometry* g);
> 2: extern char * GEOS_DLL GEOSGeomToWKT(const GEOSGeometry* g);

Strk,

Option (1) is correct.

> And what if a pointer is 'const':
> 
> 1: extern const char GEOS_DLL *GEOSversion();
> 2: extern char GEOS_DLL const * GEOSversion();
> 3: extern const char GEOS_DLL * GEOSversion();

Option (3) would be correct.  Possibly (2) as well, but I'm not sure
and would encourage you to avoid that form if you aren't prepared to test it.

Best regards,
-- 
---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerdam at pobox.com
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush    | President OSGeo, http://osgeo.org




More information about the geos-devel mailing list