Skip to Content.
Sympa Menu

cgal-discuss - [cgal-discuss] Re: segment_3 sphere intersection

Subject: CGAL users discussion list

List archive

[cgal-discuss] Re: segment_3 sphere intersection


Chronological Thread 
  • From: mriem <>
  • To:
  • Subject: [cgal-discuss] Re: segment_3 sphere intersection
  • Date: Tue, 14 May 2013 11:32:04 -0700 (PDT)

Hello

Ok, before I forgot to add the include,
#include <CGAL/Exact_spherical_kernel_3.h>

but it seems like a linker error,rather than a missing include.

Anyway, following your suggestions, the new code is:

#include <CGAL/Spherical_kernel_intersections.h>

CGAL::Exact_spherical_kernel_3::Line_arc_3 cgal_seg;

CGAL::Exact_spherical_kernel_3::Sphere_3 cgal_sphere;
CGAL::intersection(cgal_seg, cgal_sphere);

And I continue to have the same undefined function error ...

error: no matching function for call to
‘intersection(CGAL::Spherical_kernel_type_equality_wrapper<CGAL::internal::Spherical_kernel_base_ref_count&lt;CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> >,
CGAL::Cartesian_base_ref_count<CGAL::Gmpq,
CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > > >,
CGAL::Spherical_kernel_3<CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > >::Line_arc_3&,
CGAL::Type_equality_wrapper<CGAL::internal::Spherical_kernel_base_ref_count&lt;CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> >,
CGAL::Cartesian_base_ref_count<CGAL::Gmpq,
CGAL::Spherical_kernel_3&lt;CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > > >,
CGAL::Spherical_kernel_3<CGAL::Cartesian&lt;CGAL::Gmpq>,
CGAL::Algebraic_kernel_for_spheres_2_3<CGAL::Gmpq> > >::Sphere_3&)’


Could it be cgal's version, I have standard build for ubuntu 10.04, its
version 3.9-1, I think ....

Could it also be that I am not linking to the proper libs? now I am linking
to the following to compile any CGAL code

target_link_libraries(learning_by_demonstration /usr/lib/libCGAL.so)

target_link_libraries(learning_by_demonstration /usr/lib/libCGAL_Core.so)
target_link_libraries(learning_by_demonstration
/usr/lib/x86_64-linux-gnu/libmpfr.so.4)
target_link_libraries(learning_by_demonstration
/usr/lib/x86_64-linux-gnu/libgmp.so.10)

are any missing?

Thanks

Miguel





--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/segment-3-sphere-intersection-tp4657426p4657434.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page