Hello!

I am trying to compile main branch of LyX and I have found a problem with
template  instantiation depth. I got following error:

/bin/sh ../../libtool --mode=compile g++ -DHAVE_CONFIG_H -I. -I.
-I../../src -I./../ -I../../boost  -isystem /usr/X11R6/include  -g -O
-Wno-non-template-friend -W -Wall -c insetbib.C
g++ -DHAVE_CONFIG_H -I. -I. -I../../src -I./../ -I../../boost -isystem
/usr/X11R6/include -g -O -Wno-non-template-friend -W -Wall
-Wp,-MD,.deps/insetbib.pp -c insetbib.C
../../boost/boost/shared_ptr.hpp:203: template instantiation depth exceeds
maximum of 17
../../boost/boost/shared_ptr.hpp:203:  (use -ftemplate-depth-NN to
increase the maximum)
../../boost/boost/shared_ptr.hpp:203:   instantiating
`boost::detail::shared_ptr_traits<boost::signals::detail::cached_return_value<boost::signals::detail::unusable>
>'


and when I add -ftemplate-depth-19 to Makefile everything compiles fine.

problematic file:

 cvs status -v insetbib.C
===================================================================
File: insetbib.C        Status: Up-to-date

   Working revision:    1.96
   Repository revision: 1.96    /cvs/lyx/lyx-devel/src/insets/insetbib.C,v
   Sticky Tag:          (none)
   Sticky Date:         (none)
   Sticky Options:      (none)

my gcc is 2.95.4 on debian woody.


I apologize if I am openning already founded problem.

Greets,

Karol Szkudlarek

Reply via email to