Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] compiling error of "linear_least_squares_fitting_3" under :Exact_predicates_exact_constructions_kernel

Subject: CGAL users discussion list

List archive

[cgal-discuss] compiling error of "linear_least_squares_fitting_3" under :Exact_predicates_exact_constructions_kernel


Chronological Thread 
  • From: kyewong <>
  • To:
  • Subject: [cgal-discuss] compiling error of "linear_least_squares_fitting_3" under :Exact_predicates_exact_constructions_kernel
  • Date: Thu, 6 Oct 2011 07:53:33 -0700 (PDT)

Hi,
When I'm using the linear_least_squares_fitting_3 and
CGAL::Exact_predicates_exact_constructions_kernel as kernel, there will be a
compile error as follows.
Could anyone tell me how to modify it if I want to use both of them at the
same time please? Thanks very much!


1>F:\Program Files\CGAL-3.8\include\CGAL/PCA_util.h(132) : error C2665:
'sqrt' : none of the 3 overloads could convert all the argument types
1> F:\Program Files\Microsoft Visual Studio
9.0\VC\include\math.h(581): could be 'long double sqrt(long double)'
1> F:\Program Files\Microsoft Visual Studio
9.0\VC\include\math.h(533): or 'float sqrt(float)'
1> F:\Program Files\Microsoft Visual Studio
9.0\VC\include\math.h(128): or 'double sqrt(double)'
1> while trying to match the argument list
'(CGAL::Lazy_exact_nt<ET_>)'
1> with
1> [
1> ET_=CGAL::Gmpq
1> ]
1> F:\Program
Files\CGAL-3.8\include\CGAL/linear_least_squares_fitting_triangles_3.h(57) :
see reference to function template instantiation 'void
CGAL::internal::assemble_covariance_matrix_3&lt;InputIterator,K&gt;(InputIterator,InputIterator,CGAL::Lazy_exact_nt<ET_>
[],const CGAL::Point_3<R_> &,const K &,const CGAL::Triangle_3<R_> *,const
CGAL::Dimension_tag<dim> &)' being compiled
1> with
1> [
1> InputIterator=std::list<Triangle>::_Iterator<true>,
1> K=CGAL::Epeck,
1> ET_=CGAL::Gmpq,
1> R_=CGAL::Epeck,
1> dim=2
1> ]
1> F:\Program
Files\CGAL-3.8\include\CGAL/linear_least_squares_fitting_3.h(58) : see
reference to function template instantiation 'CGAL::Lazy_exact_nt<ET_>
CGAL::internal::linear_least_squares_fitting_3&lt;InputIterator,Kernel&gt;(InputIterator,InputIterator,CGAL::Plane_3<R_>
&,CGAL::Point_3<R_> &,const CGAL::Triangle_3<R_> *,const K &,const
CGAL::Dimension_tag<dim> &)' being compiled
1> with
1> [
1> ET_=CGAL::Gmpq,
1> InputIterator=std::list<Triangle>::_Iterator<true>,
1> Kernel=CGAL::Epeck,
1> R_=CGAL::Epeck,
1> K=CGAL::Epeck,
1> dim=2
1> ]
1> F:\Program
Files\CGAL-3.8\include\CGAL/linear_least_squares_fitting_3.h(76) : see
reference to function template instantiation 'CGAL::Lazy_exact_nt<ET_>
CGAL::linear_least_squares_fitting_3&lt;InputIterator,Object,CGAL::Epeck,Tag&gt;(InputIterator,InputIterator,Object
&,CGAL::Point_3<R_> &,const Tag &,const Kernel &)' being compiled
1> with
1> [
1> ET_=CGAL::Gmpq,
1> InputIterator=std::list<Triangle>::_Iterator<true>,
1> Object=Plane,
1> Tag=CGAL::Dimension_tag<2>,
1> R_=CGAL::Epeck,
1> Kernel=CGAL::Epeck
1> ]
1> F:\Program
Files\CGAL-3.8\include\CGAL/linear_least_squares_fitting_3.h(93) : see
reference to function template instantiation 'CGAL::Lazy_exact_nt<ET_>
CGAL::linear_least_squares_fitting_3&lt;InputIterator,Object,CGAL::Point_3&lt;R_&gt;,Tag>(InputIterator,InputIterator,Object
&,Point &,const Tag &)' being compiled
1> with
1> [
1> ET_=CGAL::Gmpq,
1> InputIterator=std::list<Triangle>::_Iterator<true>,
1> Object=Plane,
1> R_=CGAL::Epeck,
1> Tag=CGAL::Dimension_tag<2>,
1> Point=CGAL::Point_3<CGAL::Epeck>
1> ]
1> .\linear_least_squares_fitting_triangles_3.cpp(33) : see reference
to function template instantiation 'CGAL::Lazy_exact_nt<ET_>
CGAL::linear_least_squares_fitting_3&lt;std::list&lt;_Ty&gt;::_Iterator<_Secure_validation>,Plane,CGAL::Dimension_tag<dim>>(InputIterator,InputIterator,Object
&,const Tag &)' being compiled
1> with
1> [
1> ET_=CGAL::Gmpq,
1> _Ty=Triangle,
1> _Secure_validation=true,
1> dim=2,
1> InputIterator=std::list<Triangle>::_Iterator<true>,
1> Object=Plane,
1> Tag=CGAL::Dimension_tag<2>
1> ]

--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/compiling-error-of-linear-least-squares-fitting-3-under-Exact-predicates-exact-constructions-kernel-tp3878596p3878596.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.16.

Top of Page