Opened 16 years ago

Last modified 13 years ago

#173 closed defect

unresolved external symbol geos::geom::GeometryFactory::createPolygon — at Version 4

Reported by: Kees Owned by: mloskot
Priority: major Milestone: 3.2.3
Component: Core Version: 3.2.0
Severity: Significant Keywords:
Cc:

Description (last modified by mloskot)

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.

Change History (4)

comment:1 by Kees, 16 years ago

Component: Build/InstallCore

comment:2 by Kees, 16 years ago

Version: 3.0.0

Sources from: tags/3.0.0-rc5

comment:3 by pramsey, 15 years ago

Milestone: 3.2.0

comment:4 by mloskot, 15 years ago

Description: modified (diff)
Owner: set to mloskot
Status: newassigned

Microsoft (R) 32-bit C/C++ Optimizing Compiler Version 15.00.30729.01 for 80x86

Note: See TracTickets for help on using tickets.