[EMAIL PROTECTED] 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, [EMAIL PROTECTED]
light and sound - activate the windows | http://pobox.com/~warmerdam
and watch the world go round - Rush | President OSGeo, http://osgeo.org
_______________________________________________
geos-devel mailing list
geos-devel@geos.refractions.net
http://geos.refractions.net/mailman/listinfo/geos-devel