Opened 16 years ago
Last modified 13 years ago
#173 closed defect
unresolved external symbol geos::geom::GeometryFactory::createPolygon — at Initial Version
Reported by: | Kees | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 3.2.3 |
Component: | Core | Version: | 3.2.0 |
Severity: | Significant | Keywords: | |
Cc: |
Description
error LNK2019: unresolved external symbol "public: class geos::geom::Polygon * thiscall geos::geom::GeometryFactory::createPolygon(class geos::geom::LinearRing *,class _STL::vector<class geos::geom::Geometry *,class _STL::allocator<class geos::geom::Geometry *> > *)const " (?createPolygon@GeometryFactory@geom@geos@@QBEPAVPolygon@23@PAVLinearRing@23@PAV?$vector@PAVGeometry@geom@geos@@V?$allocator@PAVGeometry@geom@geos@@@_STL@@@_STL@@@Z) referenced in function _main
Occured in example:
vector<geos::geom::Geometry*> inner_holes; vector<geos::geom::Geometry*> outer_holes;
geos::geom::DefaultCoordinateSequence* innerSequence=new geos::geom::DefaultCoordinateSequence();
innerSequence->add(geos::geom::Coordinate(1, 1));
innerSequence->add(geos::geom::Coordinate(2, 1));
innerSequence->add(geos::geom::Coordinate(2, 2)); innerSequence->add(geos::geom::Coordinate(1, 1)); geos::geom::LinearRing* innerRing = global_factory.createLinearRing(innerSequence);
geos::geom::Polygon* innerPolygon = global_factory.createPolygon(innerRing,&inner_holes);
The problem is with createPolygon because no unresolved externals will be created when this method is left out of the example.
Build environment: Windows XP, Visual Studio 7.1, STLPort 4.6.2.