From: Orcan O. <oge...@gm...> - 2011-09-21 18:33:27
|
On Wed, Sep 21, 2011 at 1:45 PM, Tim E. Real wrote: > After committing last night's meter work, MusE builds fine > on my older Mandriva box, but fails compilation on this brand-new > Ubuntu 11.04 box. (It worked fine before my commits.) > > It fails at astrip.cpp beginning with: > > astrip.cpp:108:22 error: invalid use of incomplete type > 'struct MusEWidget::Meter' > strip.h:44:7: error: forward declaration of > 'struct MusEWidget::Meter' > ... > > and of course a bunch more similar errors, at astrip.cpp. > > I know a solution is to put #include "meter.h" at the top > of strip.h > But I hate doing that. That just can't be the answer, can it? > Especially since #include "meter.h" is /already/ at the top > of astrip.cpp > > For the life of me I can't figure out why it compiled BEFORE > my commits. But it looks like maybe my fault, having changed > some meter code. > > Orcan... somebody... what's wrong? > Hi Tim, I can't see it now (because I have to work on a more inferior OS). But check inside strip.h to see if there is a naked "class Meter;". If there is, please move it into a "namespace MusEWidget {}" enclosement. If it doesn't work, I'll take a look tonight. Orcan |