Subject: CGAL users discussion list
List archive
- From: Michael Jeulin-L <>
- To:
- Subject: [cgal-discuss] linear_least_squares_fitting_2 - Undefined
- Date: Wed, 18 Nov 2009 11:33:45 +0100 (CET)
Hi,
I have a very weird error when I`m trying to use the function
linear_least_squares_fitting_2.
I`m just trying to compil the following code with the exact kernel :
#include <CGAL/Cartesian.h>
#include <CGAL/linear_least_squares_fitting_2.h>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
using namespace std;
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2 ;
typedef K::Line_2 Line_2 ;
int main()
{
list<Point_2> points;
points.push_back(Point_2(1.0,0.0));
points.push_back(Point_2(2.0,0.0));
points.push_back(Point_2(3.0,0.0));
Line_2 line;
linear_least_squares_fitting_2(points.begin(),points.end(),line);
return 0;
}
but I receive this error :
no matching function for call to
`linear_least_squares_fitting_2(std::_List_iterator<Point_2>,
std::_List_iterator<Point_2>, Line_2&)'
I tried with CGAL && CGAL::CGALi just in case but no way...
In the .h, the function is properly defined and I tried to clean my project
too, but I still have the problem.
Does someone has an Idea about the problem I could have to use this function ?
Thank you very much.
Regards.
- [cgal-discuss] linear_least_squares_fitting_2 - Undefined, Michael Jeulin-L, 11/18/2009
- Re: [cgal-discuss] linear_least_squares_fitting_2 - Undefined, Laurent Rineau (GeometryFactory), 11/18/2009
- Re: Re: [cgal-discuss] linear_least_squares_fitting_2 - Undefined, Michael Jeulin-L, 11/18/2009
- Re: [cgal-discuss] linear_least_squares_fitting_2 - Undefined, Laurent Rineau (GeometryFactory), 11/18/2009
Archive powered by MHonArc 2.6.16.