Skip to Content.
Sympa Menu

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

Subject: CGAL users discussion list

List archive

[cgal-discuss] -frounding-math compiler option


Chronological Thread 
  • From: Edoardo Milotti <>
  • To:
  • Subject: [cgal-discuss] -frounding-math compiler option
  • Date: Wed, 17 Feb 2010 12:14:11 +0100

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?

Edoardo Milotti




Archive powered by MHonArc 2.6.16.

Top of Page