RE: [Boost-users] compile error

Thanks But how and where can i changed the flag in g++ ? eyal -----Original Message----- From: boost-users-bounces@lists.boost.org [mailto:boost-users-bounces@lists.boost.org]On Behalf Of Malte Starostik Sent: Monday, March 28, 2005 5:37 AM To: boost-users@lists.boost.org Subject: Re: [Boost-users] compile error Eyal Inbar schrieb:
Hello
I download boost to window2000 OS and run the quick_tour.cpp on VC++ 6 without trouble.
But when i run it on linux with KDevelop i get
/usr/local/include/boost/iterator/iterator_adaptor.hpp:218: template instantiation exceeds
maximum of 17 (use -ftemplate-depth-NN to increase the maximum) ^^^^^^^^^^^^^^^^^^^ here... instantiating 'struct
boost::mpl::eval_if<boos::is_convertible<random_access_itarator_tag,
boost::incrementable_traversal_tag>,boost::mpl::identity<random_access_iterator_tag>,
boost::detail::old_category_to_traversal<random_access_iterator_tag> >'
...it tells you what to do. The C++ standard speficies a limit of 17 for recursively nested template instantiations. To have g++ accept deeper nested templates, add sth. like -ftemplate-depth-20 (or more than 20 as needed) to the compile command (CXXFLAGS). Now I wonder whether "recursively nested" applies only to a< a< a< a< ... > > > > or also to a< b< c< d< ... > > > > and g++ misinterpreted that... HTH, Malte _______________________________________________ Boost-users mailing list Boost-users@lists.boost.org http://lists.boost.org/mailman/listinfo.cgi/boost-users

Eyal Inbar schrieb: [how to add -ftemplate-depth-NN]
Thanks But how and where can i changed the flag in g++ ?
I don't know exactly where it is in KDevelop, but usually in IDEs, somewhere in the project options you can add/change compilation flags. Look around in the options, check the manual. For often used flags there may be predefined options to check, for things like the template depth you probably have to enter -ftemplate-depth-NN where NN is the desired value manually in some "extended options" or similar field. HTH, Malte
participants (2)
-
Eyal Inbar
-
Malte Starostik