Hey all, I'm doing some work on the stencil class and I have a programming question.
I'm experimenting with the following code: class Stencil { Box dim_; SCM expr_; Drul_array<Stencil> children_; etc... } and g++ gives me: rm -f ./out/articulations.dep; DEPENDENCIES_OUTPUT="./out/articulations.dep ./out/articulations.o" g++ -c -Woverloaded-virtual -I/usr/include/python2.6 -I/usr/include/python2.6 -fno-strict-aliasing -g -fwrapv -DHAVE_CONFIG_H -I./include -I./out -I../flower/include -I../flower/./out -I../flower/include -g -pipe -pthread -I/usr/include/freetype2 -pthread -I/usr/include/pango-1.0 -I/usr/include/freetype2 -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -Wno-pmf-conversions -W -Wall -Wconversion -o out/articulations.o articulations.cc In file included from ../flower/include/interval.hh:26, from ./include/lily-guile.hh:38, from ./include/grob-info.hh:23, from ./include/engraver.hh:23, from articulations.cc:19: ../flower/include/drul-array.hh: In instantiation of 'Drul_array<Stencil>': ./include/stencil.hh:63: instantiated from here ../flower/include/drul-array.hh:32: error: 'Drul_array<T>::array_' has incomplete type ./include/stencil.hh:60: error: forward declaration of 'class Stencil' make: *** [out/articulations.o] Error 1 When I change the Drul_array to a vector, this problem goes away. I would, however, like it to be a Drul_array (or even better, a pair, but pair gives me the same forward declaration error as Drul_array). Does anyone know a way to declare this thing correctly so that I don't get the forward declaration error? Cheers, MS _______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel