ブースト ジオメトリ ライブラリ C++ を使用しています。このコードは古いバージョンの Eclipse (pythonxy からインストールされます) でうまく機能します。ここで、Eclipse と Mingw (x86_64-w64-mingw32) の最新バージョンをインストールします。エラーは、関数intersection_inserter()およびboost::geometry::enrich_intersection_points()で表示されます。
typedef std::vector<polygon_2d > polygon_list;
polygon_list v;
intersection_inserter<polygon_2d>(square, *polygon_iterator,
std::back_inserter(v));
エラーは次のとおりです。
c:\program files\mingw64\bin\../lib/gcc/x86_64-w64-mingw32/4.7.1/
../../../../include/boost/geometry/algorithms/intersection.hpp:293:27:
required from 'OutputIterator boost::geometry::intersection_inserter(
const Geometry1&, const Geometry2&, OutputIterator) [with GeometryOut =
boost::geometry::polygon<boost::geometry::point_xy<double,
boost::geometry::cs::cartesian> >; Geometry1 =
boost::geometry::box<boost::geometry::point_xy<double,
boost::geometry::cs::cartesian> >; Geometry2 =
boost::geometry::polygon<boost::geometry::point_xy<double,
boost::geometry::cs::cartesian> >; OutputIterator =
std::back_insert_iterator<std::vector<boost::geometry::polygon<boost::
geometry::point_xy<double, boost::geometry::cs::cartesian> > > >]'
..\src\VoronoiPolygons.cpp:397:85: required from here
c:\program files\mingw64\bin\../lib/gcc/x86_64-w64-
mingw32/4.7.1/../../../../include/boost/geometry/algorithms/overlay/
enrich_intersection_points.hpp:198:20: error: 'compare_distances' was not
declared in this scope, and no declarations were found by
argument-dependent lookup at the point of instantiation [-fpermissive]