Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] exact kernel + Polygon_set_2::join() + Visual C++ 2008 = fatal error C1060: compiler is out of heap space
Chronological Thread
- From: Yasui <>
- To:
- Subject: Re: [cgal-discuss] exact kernel + Polygon_set_2::join() + Visual C++ 2008 = fatal error C1060: compiler is out of heap space
- Date: Fri, 4 Mar 2011 12:15:27 +0100 (CET)
I encountered the same problem. I am using Visual Studio 2010 on Windows 7.
When I try to compile the simple code attached below, after the compiler
consumes around 800MB RAM, it fails with the message "fatal error C1060:
compiler is out of heap space".
As Remi suggested, if I use Exact_predicates_inexact_constructions_kernel.h
and
CGAL::Exact_predicates_inexact_constructions_kernel, the compiler requires
only around 300MB and the code compiles. But I need
Exact_predicates_exact_constructions_kernel since "do_intersection" seems to
fail due to round-off error. I would appreciate if anyone have ideas to solve
this problem.
#include <CGAL/Exact_predicates_exact_constructions_kernel.h>
#include <CGAL/Boolean_set_operations_2.h>
#include <iostream>
using namespace std;
typedef CGAL::Exact_predicates_exact_constructions_kernel Kernel;
typedef CGAL::Polygon_with_holes_2<Kernel>
Polygon_with_holes_2;
void DoIntersection(const Polygon_with_holes_2 &P, const Polygon_with_holes_2
&Q)
{
cerr << "is intersect?: " << CGAL::do_intersect (P, Q) << endl;
}
- Re: [cgal-discuss] exact kernel + Polygon_set_2::join() + Visual C++ 2008 = fatal error C1060: compiler is out of heap space, Yasui, 03/04/2011
Archive powered by MHonArc 2.6.16.