[Debtags-devel] libtagcoll-dev broken

Peter Rockai (mornfall) mornfall@danill.sk
Sun, 12 Sep 2004 11:43:23 +0200


On Sunday 12 September 2004 11:09, Benjamin Mesing wrote:
> Hello,
>
> > When compiling using the latest version of libtagcoll I get th following
> > error:
> >
> > from debtagsplugincontainer.cpp:20:
> > */usr/include/tagcoll/TagConsumer.h: In member function `virtual void
> > Tagcoll::MatcherFilter<ITEM>::consume(const ITEM&)':
> > */usr/include/tagcoll/TagConsumer.h:73: error: `next' undeclared (first
> > use this function) */usr/include/tagcoll/TagConsumer.h:73: error: (Each
> > undeclared identifier is reported only once for each function it appears
> > in.)
>
> Hmm... strange this seems to happen only with the gcc-3.4.
> The gcc-3.3 works fine. So it has nothing to do with the new libtagcoll.
> Besides I can't see the problem the gcc-3.4 has - next is definetely
> defined in the base class as protected member.
3.4 is a bit more strict on inherited template members, i think you must 
explicitly qualify it as a Base<Type>::member to acces it (or put this -> in 
front of it? this may work too...).
>
> Greetings Ben
>
Yours,
    Peter