Subject: CGAL users discussion list
List archive
Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp
Chronological Thread
- From: "Laurent Rineau (GeometryFactory)" <>
- To:
- Subject: Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp
- Date: Thu, 9 Dec 2010 21:04:53 +0100
- Organization: GeometryFactory
Le jeudi 09 décembre 2010 20:48:35, Michel Audette a écrit :
> Hello,
>
> I would like to play with the code in
> examples/Mesh_3/mesh_polyhedral_domain.cpp , but I'm finding that the
> build process (on Linux with gcc 4.4.3) complains about the first
> line, in a manner related to template instantiation depth. I have
> other CGAL-based code that builds fine, so this code has something
> that gcc does not like.
>
> In file included from
> /usr/local/include/CGAL/Modular_arithmetic/Residue_type.h:27,
> from /usr/local/include/CGAL/Residue.h:31,
> from /usr/local/include/CGAL/Modular_traits.h:24,
> from /usr/local/include/CGAL/int.h:29,
> from /usr/local/include/CGAL/number_type_basic.h:78,
> from /usr/local/include/CGAL/basic.h:35,
> from
> /usr/local/include/CGAL/Cartesian/Cartesian_base.h:27, from
> /usr/local/include/CGAL/Simple_cartesian.h:27, from
> /usr/local/include/CGAL/Exact_predicates_inexact_constructions_kernel.h:27,
> from
> /home/michel/simProject/SimplexDecimation/Examples/Preprocessing/OffInputCG
> ALTetrahedralization.cxx:1: /usr/include/boost/operators.hpp:129: error:
> template instantiation depth exceeds maximum of 50 (use
> -ftemplate-depth-NN to increase the maximum) instantiating ‘struct
> boost::equality_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > >’
> /usr/include/boost/operators.hpp:129: instantiated from
> ‘boost::less_than_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::equality_comparable2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > > >’
> /usr/include/boost/operators.hpp:409: instantiated from
> ‘boost::totally_ordered2<CGAL::Quotient<CGAL::MP_Float>, double,
> boost::detail::empty_base<CGAL::Quotient<CGAL::MP_Float> > >’
> ...
> (a long litany of messages, many related to boost)
>
> Can anyone comment on a workaround?
Even gcc suggested you a workaround! Try -ftemplate-depth-1000 for example.
:-)
--
Laurent Rineau, PhD
Release Manager of the CGAL Project http://www.cgal.org/
R&D Engineer at GeometryFactory http://www.geometryfactory.com/
- [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Michel Audette, 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Laurent Rineau (GeometryFactory), 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Michel Audette, 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Laurent Rineau (GeometryFactory), 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Michel Audette, 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Laurent Rineau (GeometryFactory), 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Michel Audette, 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Laurent Rineau (GeometryFactory), 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Michel Audette, 12/09/2010
- Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp, Laurent Rineau (GeometryFactory), 12/09/2010
Archive powered by MHonArc 2.6.16.