Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] Re: Assertion thrown -- wrong rounding

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] Re: Assertion thrown -- wrong rounding


Chronological Thread 
  • From: "Laurent Rineau (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] Re: Assertion thrown -- wrong rounding
  • Date: Fri, 26 Feb 2010 14:02:01 +0100
  • Organization: GeometryFactory

On Friday 26 February 2010 11:11:09 BardoB wrote:
> Hi,
>
> I have the same problem.
>
> gcc --version:
>
> i686-apple-darwin10-gcc-4.2.1 (GCC) 4.2.1 (Apple Inc. build 5646) (dot 1)
> Copyright (C) 2007 Free Software Foundation, Inc.
> This is free software; see the source for copying conditions. There is NO
> warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
>
> cat CGALConfig.cmake | grep frounding:
>
> set(CGAL_CXX_FLAGS_INIT "-pipe -arch x86_64 -arch i386 -frounding-math
> -fno-strict-aliasing" )
>
> cat CMakeLists.txt | grep frounding:
>
> message( STATUS "Using gcc version 4 or later. Adding -frounding-math" )
> uniquely_add_flags( CGAL_CXX_FLAGS "-frounding-math" )
>
> Is there a sollution known?

For some reason, the flag -frounding-math is not used. Try recompile CGAL:

make clean
make VERBOSE=1

and check the flags. If you compile a program, please also use make VERBOSE=1
to check the compilation flags.

--
Laurent Rineau, PhD
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
Release Manager of the CGAL Project http://www.cgal.org/



Archive powered by MHonArc 2.6.16.

Top of Page