Subject: CGAL users discussion list
List archive
- From: Ramin H <>
- To:
- Subject: Re: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space
- Date: Fri, 13 Nov 2009 16:33:41 -0500
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=ViCCyk/559IpWrkTeJjwTNeb2IVcScZCqcVCE5OWFBs2DsuIYpsWXoap0/BFrbZUZr 7ITW1DWZDYjAmjQOzs9+vX9UyMclKYbql/T6oyRFuwGgVSl3fOEnQvZCH/uLEKdoSwR1 AZMTK5BCUXVsmdeDxXy9Cpw00Kqd3HtZEtQT0=
Thanks for sharing your experience. Unfortunately that didn't solve my problem.
I am compiling with VS 2005 IDE. In the IDE under:
Project > Property > Configuration Properties > C/C++ -> Command Line
is showing:
/Od /I "C:\program Files\boost\boost_1_35_0" /I "C:\Program Files\CGAL-3.5\auxiliary\gmp\include" /I "C:\Program Files\CGAL-3.5\include" /D "_MBCS" /Gm /EHsc /RTC1 /MDd /Fo"Debug\\" /Fd"Debug\vc80.pdb" /W3 /nologo /c /Wp64 /ZI /TP /errorReport:prompt
I added /Zm1000 to "Additional options".
So far, no luck.
Hi,
I had the same error and found a work around.
Are you compiling it with the /clr switch ?
if Yes remove the switch, and compile the example. It should work.
If no, then try to use the /Zm switch with a value of 1000, again it should work.
Cheers,
Thibaut Klein
From: Ramin H [mailto:]
Sent: Friday, November 13, 2009 2:17 PM
To:
Subject: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space
Hi everyone,
I am using: CGAL 3.5, VS 2005, boost 1.35, QT 4.3.1
I get the following errors:
==============
Error 6 fatal error C1060: compiler is out of heap space c:\program files\boost\boost_1_35_0\boost\mpl\aux_\preprocessed\plain\apply_wrap.hpp 79
Error 7 fatal error C1063: INTERNAL COMPILER ERROR c1xx
==============
while I am compiling the following code (which is a copy of CGAL-3.5\examples\Mesh_3\mesh_polyhedral_domain.cpp) .
Anyone has a similar problem? I also compiled against boost 1.39 but i get the exact same error. ( i downloaded boost binaries from boost pro)
Any idea how to get around this problem?
Thank you,
-Ramin
----- code begin ------
#include <CGAL/Mesh_criteria_3.h>
#include <CGAL/Polyhedral_mesh_domain_3.h>
#include <CGAL/make_mesh_3.h>
#include <CGAL/refine_mesh_3.h>
// IO
#include <CGAL/IO/Polyhedron_iostream.h>
// Domain
// (we use exact intersection computation with Robust_intersection_traits_3)
struct K: public CGAL::Exact_predicates_inexact_constructions_kernel {};
typedef CGAL::Mesh_3::Robust_intersection_traits_3<K> Geom_traits;
typedef CGAL::Polyhedron_3<Geom_traits> Polyhedron;
typedef CGAL::Polyhedral_mesh_domain_3<Polyhedron, Geom_traits> Mesh_domain;
// Triangulation
typedef CGAL::Mesh_triangulation_3<Mesh_domain>::type Tr;
typedef CGAL::Mesh_complex_3_in_triangulation_3<Tr> C3t3;
// Mesh Criteria
typedef CGAL::Mesh_criteria_3<Tr> Mesh_criteria;
typedef Mesh_criteria::Facet_criteria Facet_criteria;
typedef Mesh_criteria::Cell_criteria Cell_criteria;
int main()
{
// Create polyhedron
Polyhedron polyhedron;
std::ifstream input("data/elephant.off");
input >> polyhedron;
// Create domain
Mesh_domain domain(polyhedron);
// Set mesh criteria
Facet_criteria facet_criteria(25, 0.15, 0.008); // angle, size, approximation
Cell_criteria cell_criteria(4, 0.2); // radius-edge ratio, size
Mesh_criteria criteria(facet_criteria, cell_criteria);
// Mesh generation
C3t3 c3t3 = CGAL::make_mesh_3<C3t3>(domain, criteria);
// Output
std::ofstream medit_file("out.mesh");
c3t3.output_to_medit(medit_file);
medit_file.close();
// Change tetrahedron size
Cell_criteria new_cell_criteria(4, 0.03); // radius-edge ratio, size
Mesh_criteria new_criteria(facet_criteria, new_cell_criteria);
// Mesh refinement
CGAL::refine_mesh_3(c3t3, domain, new_criteria);
// Output
medit_file.open("out_1.mesh");
c3t3.output_to_medit(medit_file);
return 0;
}
------- code end ----------
- [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, Ramin H, 11/13/2009
- RE: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, tklein, 11/13/2009
- Re: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, Ramin H, 11/13/2009
- RE: [cgal-discuss] CGAL 3.5, VS 2005 - compiler is out of heap space, tklein, 11/13/2009
Archive powered by MHonArc 2.6.16.