[geos-devel] Doubts

Sandro Santilli strk at keybit.net
Fri Jun 21 06:09:40 PDT 2013


On Fri, Jun 21, 2013 at 04:50:35PM +0530, vishal tiwari wrote:
> Hey,
> I am facing some very silly problems when i try to compile
> QuadEdgeSubdivision.cpp.
> I have declared my getVoronoiCellPolygons as :
> void
> QuadEdgeSubdivision::getVoronoiCellPolygons(std::vector<geom::Geometry *>
> &cells ,const geom::GeometryFactory& geomFact)
> {
> .....
> .....
> }
> 
> And I have definition it in QuadEdgeSubdiviion.h as:
> 
> void getVoronoiCellPolygons( std::vector<geom::Geometry *> &cells , const
> geom::GeomtryFactory &geomFact);
> 
> And i am getting the following compilation error:
> In file included from QuadEdgeSubdivision.cpp:18:
> ../../../include/geos/triangulate/quadedge/QuadEdgeSubdivision.h:425:
> error: expected unqualified-id before ‘&’ token

Sounds like a missing #include <geos/geom/GeometryFactory.h>
or a missing #include <vector>. You'll need both.

--strk;

  ~~ http://strk.keybit.net 



More information about the geos-devel mailing list