Ticket #173 (closed defect: wontfix)

Opened 5 years ago

Last modified 21 months ago

unresolved external symbol geos::geom::GeometryFactory::createPolygon

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) (diff)

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

Changed 5 years ago by Kees

  • component changed from Build/Install to Core

Changed 5 years ago by Kees

  • version set to 3.0.0

Sources from: tags/3.0.0-rc5

Changed 4 years ago by pramsey

  • milestone set to 3.2.0

Changed 4 years ago by mloskot

  • owner set to mloskot
  • status changed from new to assigned
  • description modified (diff)

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

Changed 4 years ago by mloskot

  • status changed from assigned to closed
  • resolution set to fixed

I've tested and GEOS 3.0.0 successfulyl builds with both compilers

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

However, GEOS 3.0.0 package includes broken makefile.vc (need to remove .obj entries for non-existing files) and dirlist.mk is missing.

Closing as fixed.

Changed 3 years ago by kenohori

  • status changed from closed to reopened
  • version changed from 3.0.0 to 3.2.0
  • resolution fixed deleted
  • severity changed from Unassigned to Significant

I'm having the exact same problem under MacOS X 10.6, with both GCC 4.0 and 4.2, both with the framework and installing from source. I tried with GEOS 3.1.1 and 3.2.0.

It affects: geos::geom::createPolygon(geos::geom::LinearRing? *, std::vector<geos::geom::Geometry *> *) const geos::geom::createPolygon(geos::geom::LinearRing? &, std::vector<geos::geom::Geometry *> &) const

The createPolygon() function works well, and this is only for the C++ interface.

Changed 2 years ago by strk

  • milestone changed from 3.2.0 to 3.2.3

Is this still an issue ? Tried 3.2.2 as well ?

Changed 21 months ago by strk

  • status changed from reopened to closed
  • resolution set to wontfix

lack of response from people willing to build on those architectures is a won't fix for me

Note: See TracTickets for help on using tickets.