Boost logo

Boost Users :

Subject: [Boost-users] Boost Geometry Compilation Errors
From: Joel Markham (markhamj_at_[hidden])
Date: 2013-03-19 21:54:21


Trying to use the boost geometry library.

Have a very simple example from the boost geometry home page

int main(int argc, const char * argv[])
{
    double points[][2] = {{2.0, 1.3}, {4.1, 3.0}, {5.3, 2.6}, {2.9, 0.7}, {2.0, 1.3}};
    bgm::polygon<bgm::d2::point_xy<double> > poly;
    bg::append(poly, points);
    boost::tuple<double, double> p = boost::make_tuple(3.7, 2.0);
    std::cout << "Point p is in polygon? " << std::boolalpha << bg::within(p, poly) << std::endl;
    …
}

When trying to build on my Mac I get compiler warnings:

point_type.hpp
No matching function for call to 'assertion_failed"

coordinate_type.hpp
No matching function for call to 'assertion_failed"

convert_point_to_point.hpp
Call to function 'get that is neither visible in the template definition or found…

access.hpp
Nom member named 'get in boost::geometry::core_dispatch…

Is there something wrong with the boost libraries installed via macports?



Boost-users list run by williamkempf at hotmail.com, kalb at libertysoft.com, bjorn.karlsson at readsoft.com, gregod at cs.rpi.edu, wekempf at cox.net