Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp

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: Michel Audette <>
  • To:
  • Subject: Re: [cgal-discuss] template instantiation depth build error for examples/Mesh_3/mesh_polyhedral_domain.cpp
  • Date: Thu, 9 Dec 2010 15:31:57 -0500

I had it at 500, with both my program and the CGAL build done that
way. I don't understand why it complains about 50 still... Same thing
at 5000. Do I also have to build Boost that way?

Cheers,

Michel

On Thu, Dec 9, 2010 at 3:04 PM, Laurent Rineau (GeometryFactory)
<>
wrote:
> 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/
>
> --
> You are currently subscribed to cgal-discuss.
> To unsubscribe or access the archives, go to
> https://lists-sop.inria.fr/wws/info/cgal-discuss
>
>



--
Michel Audette, Ph.D.
R & D Engineer,
Kitware Inc.,
Chapel Hill, N.C.



Archive powered by MHonArc 2.6.16.

Top of Page