Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.graphics.algorithms > #874

runtime exception using CGAL library

From Dmitry Cherkassov <dcherkassov@gmail.com>
Newsgroups comp.graphics.algorithms
Subject runtime exception using CGAL library
Date 2012-06-13 13:49 +0400
Organization A noiseless patient Spider
Message-ID <87txyfr16n.fsf@gmail.com> (permalink)

Show all headers | View raw


Hi!

The following code using CGAL library fails with runtime exception:
http://pastebin.ca/2160795

the exception:

$ ./cppgraham 
terminate called after throwing an instance of 'CGAL::Assertion_exception'
  what():  CGAL ERROR: assertion violation!
Expr: -CGAL_IA_MUL(-1.1, 10.1) != CGAL_IA_MUL(1.1, 10.1)
File: /usr/include/CGAL/Interval_nt.h
Line: 160
Explanation: Wrong rounding: did you forget the  -frounding-math  option
if 
you use GCC (or  -fp-model strict  for Intel)?

I am running this on 64-bit debian.	

Makefile looks like this:
g++ -o ${@} graham_scan.cpp -std=c++0x -lCGAL -lgmp

What's interesting is that the very same code runs ok on 32-bit debian
system.

Any ideas?

-- 
With best regards,
Dmitry

Back to comp.graphics.algorithms | Previous | NextNext in thread | Find similar


Thread

runtime exception using CGAL library Dmitry Cherkassov <dcherkassov@gmail.com> - 2012-06-13 13:49 +0400
  Re: runtime exception using CGAL library Marc <marc.glisse@gmail.com> - 2012-06-24 13:16 +0000
    Re: runtime exception using CGAL library Dmitry Cherkassov <dcherkassov@gmail.com> - 2012-07-09 16:44 +0400

csiph-web