[geos-devel] Doubts

vishal tiwari hi.vishal123 at gmail.com
Fri Jun 21 11:56:14 PDT 2013


I have included both the header files, but i am still getting the error. I
am stuck with this for a long time now, i don't know what to do about it. I
have attached the files to the mail.


On 21 June 2013 18:39, Sandro Santilli <strk at keybit.net> wrote:

> 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
>
> _______________________________________________
> geos-devel mailing list
> geos-devel at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/geos-devel
>



-- 
Vishal Tiwari
Undergraduate
Computer Science and Engineering
Lab for Spatial Informatics
IIIT-Hyderabad
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20130622/da4c3daa/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QuadEdgeSubdivision.h
Type: text/x-chdr
Size: 14897 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20130622/da4c3daa/attachment-0001.h>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: QuadEdgeSubdivision.cpp
Type: text/x-c++src
Size: 15967 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geos-devel/attachments/20130622/da4c3daa/attachment-0001.cpp>


More information about the geos-devel mailing list