Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Compile errors for Filtered_exact.h and CGAL::Failure_function

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Compile errors for Filtered_exact.h and CGAL::Failure_function


Chronological Thread 
  • From: Sylvain Pion <>
  • To:
  • Subject: Re: [cgal-discuss] Compile errors for Filtered_exact.h and CGAL::Failure_function
  • Date: Fri, 05 Feb 2010 09:27:21 +0100

Le 05/02/10 09:18, Sylvain Pion a écrit :
Le 05/02/10 08:35, Junjie Cao a écrit :
Dear,

I meet some compile errors using CGAL 3.5 to build a old (several years
ago) program.
The program seems need CGAL::Filtered_exact and CGAL::Failure_function.
But I failed to find them in CGAL 3.5.

*#include <CGAL/Filtered_exact.h>*
*typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;*
*
*
*CGAL::Failure_function old_ff = CGAL::set_error_handler(failure_func);*

How could I compile the program?

Try adding #include <CGAL/assertions_behaviour.h>.

The function CGAL::set_error_handler is now declared in this header
(instead of <CGAL/assertions.h> previously).

Oh, and I did not realize in my first mail, but Filtered_exact is now
completely gone (this must indeed be a very old program that you have here !).

You should try to replace something like :

#include <CGAL/Filtered_exact.h>
typedef CGAL::Filtered_exact<double, CGAL::MP_Float> NT;
typedef CGAL::Cartesian<NT> K;

by :

#include <CGAL::Exact_predicates_inexact_constructions_kernel.h>
typedefCGAL::Exact_predicates_inexact_constructions_kernel K;

If you do not succeed, please provide more details about your problem
(error messages, more code pieces).

--
Sylvain Pion
INRIA Sophia Antipolis
Geometrica Project-Team
CGAL, http://cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page