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: Karl Gaize <>
- 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, 04 Mar 2011 11:35:17 +0000
are you using the /Zm compiler option? we had to increase the amount of
memory needed to compile the precompiled headers in VS2010.
oddly enough though, the help for the /Zm compiler option states:
If the compiler runs out of heap space and emits the C1060 error message when you use the /Zm compiler option, you might have reserved too much memory. Consider removing the /Zm option. If the compiler emits the C1076 error message, an accompanying C3859 message specifies the factor argument that you should use when you recompile your program with the /Zm compiler option
so either you're using a /Zm value which is too high, and you need to lower it, or vice versa. After a fair bit of mucking around, we settled on /Zm200 which works nicely, although you might need to change the /Zm factor for your usage/machine spec.
Karl
On 04/03/2011 11:15, Yasui wrote:
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
- Re: [cgal-discuss] exact kernel + Polygon_set_2::join() + Visual C++ 2008 = fatal error C1060: compiler is out of heap space, Karl Gaize, 03/04/2011
Archive powered by MHonArc 2.6.16.