Subject: CGAL users discussion list
List archive
- From: Alexander <>
- To:
- Subject: [cgal-discuss] Installing CGAL problems
- Date: Sun, 1 Jun 2014 03:54:09 -0700 (PDT)
Friends, I am installing CGAL in my friend's computer of the same type as
mine. (installing in UBUNTU)
Anyway when I run the following program to check if everything is ok I ran
into following problems:
Code:http://doc.cgal.org/latest/Manual/introduction.html
#include <iostream>
#include <CGAL/Exact_predicates_inexact_constructions_kernel.h>
#include <CGAL/convex_hull_2.h>
typedef CGAL::Exact_predicates_inexact_constructions_kernel K;
typedef K::Point_2 Point_2;
int main()
{
Point_2 points[5] = { Point_2(0,0), Point_2(10,0), Point_2(10,10),
Point_2(6,5), Point_2(4,1) };
Point_2 result[5];
Point_2 *ptr = CGAL::convex_hull_2( points, points+5, result );
std::cout << ptr - result << " points on the convex hull" << std::endl;
return 0;
}
Commands typed in Terminal :g++ TestCgal.cpp -lCGAL -lgmp
Error Displayed: 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)?
Aborted (core dumped)
The last time I got this error I read a post saying to change ''i686'' to
"i386" in som file in 32 bit systems or something lik that and that worked
fine in my system.
Can anyone direct me to that post(as i am unable to find that one) or can
anyone tell me how to fix the error
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/Installing-CGAL-problems-tp4659372.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] Installing CGAL problems, Alexander, 06/01/2014
- Re: [cgal-discuss] Installing CGAL problems, Joachim Reichel, 06/01/2014
- Re: [cgal-discuss] Installing CGAL problems, Alexander, 06/01/2014
- Re: [cgal-discuss] Installing CGAL problems, Joachim Reichel, 06/01/2014
Archive powered by MHonArc 2.6.18.