[ create a new paste ] login | about

Project: boost
Link: http://boost.codepad.org/rVahJTRJ    [ raw code | output | fork ]

C++, pasted on Feb 6:
1
2
3
4
5
6
7
8
9
10
11
12
13
#include <boost/geometry.hpp>
#include <boost/geometry/geometries/geometries.hpp>
#include <boost/geometry/geometries/point_xy.hpp>

typedef boost::geometry::model::d2::point_xy<double> point_2d;

bool intersection_ring_test() {
  boost::geometry::model::ring<point_2d> polygon;
  //boost::geometry::model::polygon<point_2d> polygon; // <-- doesn't work either
  boost::geometry::model::linestring<point_2d> polyline;

  return boost::geometry::intersects(polyline, polygon);
}


Output:
1
2
3
4
5
Line 29: error: boost/geometry.hpp: No such file or directory
Line 51: error: boost/geometry/geometries/geometries.hpp: No such file or directory
Line 49: error: boost/geometry/geometries/point_xy.hpp: No such file or directory
Line 5: error: 'boost::geometry' has not been declared
compilation terminated due to -Wfatal-errors.


Create a new paste based on this one


Comments: