trinity-devel@lists.pearsoncomputing.net

Message: previous - next
Month: April 2012

Re: [trinity-devel] Now kipi-plugins failing?? error: redeclaration of 'TQListViewItemIterator it'

From: Darrell Anderson <humanreadable@...>
Date: Thu, 5 Apr 2012 11:39:56 -0700 (PDT)
>   But when it gets to the imagelist.cpp build, gcc is
> complaining that it has 2 declarations for 'TQListViewItemIterator it'???

The error message makes sense.

The declaration of TQListViewItemIterator it(d->listView); occurs five times, each time in a different function.

Apparently in function slotAddImages the declaration is seen twice. Once from the explicit declaration and once indirectly through a call to one of the other functions.

The first question is why gcc 4.7 doesn't like this when previous versions have. The second question is how to fix. I understand the message, but lack the C++ skills to know the remedy. Probaby easy for the C++ gurus.

>   I think your patch is in the clear, it looks like
> this will be another gcc 4.7 present...

Wasn't my patch. :)

Darrell