[geos-devel] Building geos with gcc 4.1
Shawn McCann
mccann0011 at hotmail.com
Sat Jan 14 18:46:30 EST 2006
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
More information about the geos-devel
mailing list