Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] -frounding-math compiler option

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] -frounding-math compiler option


Chronological Thread 
  • From: Jens Seidel <>
  • To:
  • Subject: Re: [cgal-discuss] -frounding-math compiler option
  • Date: Wed, 17 Feb 2010 16:29:12 +0100

On Wed, Feb 17, 2010 at 12:14:11PM +0100, Edoardo Milotti wrote:
> I am using the Intel compiler on Mac OS X and cgal 3.5.0 compiled with g++
> 4.4 and the macports makefile. Since icc does not have the -frounding-math
> option, the linked program returns an error (the internal rounding-math
> test fails).
> I found out that the internal test can be disabled simply changing lines
> 76-77 in the Interval_nt.h header file to
>
> #if !defined(CGAL_DISABLE_ROUNDING_MATH_CHECK) && defined(__INTEL_COMPILER)
>
> In the original file the internal test is disabled only on linux systems,
> while in this way it is always disabled for the Intel compiler. With this
> fix my program runs, however I wonder whether this is correct, and if it
> is, shouldn't it be included in future versions of CGAL?

I have to define CGAL_DISABLE_ROUNDING_MATH_CHECK also on a Linux box using
-frounding-math, namely if I want to start the program via valgrind. It is
not sufficient to define -frounding-math in all cases :-((

Jens



Archive powered by MHonArc 2.6.16.

Top of Page