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/--

You are currently subscribed to cgal-discuss.

To unsubscribe or access the archives, go to

https://lists-sop.inria.fr/wws/info/cgal-discuss