[geos-devel] Building geos with gcc 4.1
strk at refractions.net
strk at refractions.net
Mon Jan 16 06:08:42 EST 2006
Fixed, thanks.
Could you test both the 2.2 (branch-2-2) and HEAD branches ?
TIA
--strk;
On Sat, Jan 14, 2006 at 03:46:30PM -0800, Shawn McCann wrote:
> As a heads up, I've added geos to Fedora Extras but ran into a problem
> getting it to compile on FC5. FC5 uses gcc 4.1 instead of gcc 4.0 and
> encounters errors with geom.h
>
> ./../source/headers/geos/geom.h:361: error: extra qualification
> 'geos::Coordinate::' on member 'setNull'
> ../../source/headers/geos/geom.h:367: error: extra qualification
> 'geos::Coordinate::' on member 'getNull'
> ../../source/headers/geos/geom.h:371: error: extra qualification
> 'geos::Coordinate::' on member 'Coordinate'
>
> Apparently GCC-4.1 dislikes constructs like this:
>
> class MyClass {
> int MyClass::method(...);
> }
>
> and wants this instead
>
> class MyClass {
> int method(...);
> }
>
> We created a patch to remove the Coordinate:: tags from geom.h and all
> works well now.
>
> Shawn
>
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at geos.refractions.net
> http://geos.refractions.net/mailman/listinfo/geos-devel
--
/"\ ASCII Ribbon Campaign
\ / Respect for low technology.
X Keep e-mail messages readable by any computer system.
/ \ Keep it ASCII.
More information about the geos-devel
mailing list