Subject: CGAL users discussion list
List archive
[cgal-discuss] Error when building algebraic_curves and algebraic_segments examples
Chronological Thread
- From: Lee Croft <>
- To:
- Subject: [cgal-discuss] Error when building algebraic_curves and algebraic_segments examples
- Date: Tue, 23 Dec 2014 17:23:07 -0800 (PST)
Hi,
I'm trying to build the CGAL shipped examples for
Arrangement_on_surface_2\algebraic_curves.cpp and
Arrangement_on_surface_2\algebraic_segments.cpp but I am getting a type
conversion error. I am using a 64 bit version of CGAL 4.5 on a Windows 8.1
operating system and a Microsoft VC12 2013 compiler. I have successfully
built and run other examples. The build output from the algebraic curves
example is as follows:
1>------ Build started: Project: ZERO_CHECK, Configuration: Release x64
------
2>------ Build started: Project: algebraic_curves, Configuration: Release
x64 ------
2> algebraic_curves.cpp
2>C:\Dev\CGAL-4.5\examples\Arrangement_on_surface_2\..\..\include\CGAL/Curved_kernel_via_analysis_2/Point_2.h(472):
error C2440: 'return' : cannot convert from 'const
boost::optional<CGAL::internal::Xy_coordinate_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<Coefficient,Bound>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,Bound>>>,CGAL::internal::Xy_coordinate_2_rep<AlgebraicCurveKernel_2>,CGAL::Handle_policy_union,std::allocator<Rep_>>>'
to 'bool'
2> with
2> [
2> Coefficient=CORE::BigInt
2> , Bound=CGAL::CORE_arithmetic_kernel::Rational
2> ,
AlgebraicCurveKernel_2=CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,CGAL::CORE_arithmetic_kernel::Rational>>>
2> ,
Rep_=CGAL::internal::Xy_coordinate_2_rep<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,CGAL::CORE_arithmetic_kernel::Rational>>>>
2> ]
2> No user-defined-conversion operator available that can perform
this conversion, or the operator cannot be called
2>
C:\Dev\CGAL-4.5\examples\Arrangement_on_surface_2\..\..\include\CGAL/Curved_kernel_via_analysis_2/Point_2.h(471)
: while compiling class template member function 'bool
CGAL::internal::Point_2<CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<Coefficient,Bound>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,Bound>>>>,CGAL::internal::Point_2_rep<CurvedKernelViaAnalysis_2>>::is_finite(void)
const'
2> with
2> [
2> Coefficient=CORE::BigInt
2> , Bound=CGAL::CORE_arithmetic_kernel::Rational
2> ,
CurvedKernelViaAnalysis_2=CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,CGAL::CORE_arithmetic_kernel::Rational>>>>
2> ]
2>
C:\Dev\CGAL-4.5\examples\Arrangement_on_surface_2\..\..\include\CGAL/Curved_kernel_via_analysis_2/Curved_kernel_via_analysis_2_functors.h(925)
: see reference to function template instantiation 'bool
CGAL::internal::Point_2<CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<Coefficient,Bound>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,Bound>>>>,CGAL::internal::Point_2_rep<CurvedKernelViaAnalysis_2>>::is_finite(void)
const' being compiled
2> with
2> [
2> Coefficient=CORE::BigInt
2> , Bound=CGAL::CORE_arithmetic_kernel::Rational
2> ,
CurvedKernelViaAnalysis_2=CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,CGAL::CORE_arithmetic_kernel::Rational>>>>
2> ]
2>
C:\Dev\CGAL-4.5\examples\Arrangement_on_surface_2\..\..\include\CGAL/Curved_kernel_via_analysis_2/Curved_kernel_via_analysis_2_functors.h(77)
: see reference to class template instantiation
'CGAL::internal::Point_2<CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<Coefficient,Bound>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,Bound>>>>,CGAL::internal::Point_2_rep<CurvedKernelViaAnalysis_2>>'
being compiled
2> with
2> [
2> Coefficient=CORE::BigInt
2> , Bound=CGAL::CORE_arithmetic_kernel::Rational
2> ,
CurvedKernelViaAnalysis_2=CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,CGAL::CORE_arithmetic_kernel::Rational>>>>
2> ]
2>
C:\Dev\CGAL-4.5\examples\Arrangement_on_surface_2\..\..\include\CGAL/Arr_algebraic_segment_traits_2.h(598)
: see reference to class template instantiation
'CGAL::internal::Curved_kernel_via_analysis_2_Functors::Curved_kernel_via_analysis_2_functor_base<CGAL::Curved_kernel_via_analysis_2<CGAL::Algebraic_curve_kernel_2<CGAL::Algebraic_kernel_d_1<CORE::BigInt,CGAL::CORE_arithmetic_kernel::Rational,CGAL::internal::Algebraic_real_rep<Coefficient,Bound>,CGAL::internal::Descartes<CGAL::Polynomial<CORE::BigInt>,Bound>>>>>'
being compiled
2> with
2> [
2> Coefficient=CORE::BigInt
2> , Bound=CGAL::CORE_arithmetic_kernel::Rational
2> ]
2> ..\algebraic_curves.cpp(41) : see reference to class template
instantiation
'CGAL::Arr_algebraic_segment_traits_2<Integer>::Construct_curve_2' being
compiled
I see from another message on the board that someone else has had a similar
problem with these examples (seen in the first message under items 2 and 3):
http://cgal-discuss.949826.n4.nabble.com/Error-when-building-CGAL4-0-2-demo-examples-64-bit-version-td4655937.html
It was stated in that thread that this was a known bug with the VC10
compiler for which there were no plans to fix. I'd first like to verify if
anyone could tell me if this is the same problem that I have run into. If
so, have there been any changes with this issue since then or does it still
remain in the same state and are there any known work-arounds?
Thank you for your time.
Lee
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Error-when-building-algebraic-curves-and-algebraic-segments-examples-tp4660257.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Error when building algebraic_curves and algebraic_segments examples, Lee Croft, 12/24/2014
Archive powered by MHonArc 2.6.18.