[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: Problem building kdenetwork-3.2.1 on IRIX 6.5/Tru64 UNIX 5.1
From:       Albert Chin <kde-devel () thewrittenword ! com>
Date:       2004-03-11 19:21:02
Message-ID: 20040311192102.GB86085 () spuckler ! il ! thewrittenword ! com
[Download RAW message or body]

On Thu, Mar 11, 2004 at 07:05:29PM +0000, Richard Smith wrote:
> On Thursday 11 March 2004 5:48 pm, Albert Chin wrote:
> > Using the IRIX 6.5 C++ compiler, I get the following error building
> [...]
> > The problematic line is:
> >     class MyWidget : public QWidget { public: QWidget::clearWFlags; };
> >     static_cast<MyWidget*>( viewport() )->clearWFlags( WStaticContents |
> > WNoAutoErase );
> >
> > The Tru64 UNIX C++ compiler fails in a similar way:
> 
> My guess is that neither of these compilers support C++'s access
> declarations.  It's possible they support using declarations,
> though; if so, replacing
>   class MyWidget : public QWidget { public: QWidget::clearWFlags; };
> by
>   class MyWidget : public QWidget { public: using QWidget::clearWFlags; };
> 
> will fix your problem.

I get the same error. I tried creating a small test program to
reproduce the error so to comp.sys.sgi.admin but the snippet works (so
I'm doing something wrong):
  class QWidget {
  protected:
    void clearWFlags (int);
  };

  class Test {
  public:
    Test ();

    QWidget *viewport () const;
  };

  Test::Test () {
    class MyWidget: public QWidget {
    public:
      QWidget::clearWFlags;
    };

    static_cast<MyWidget*>(viewport())->clearWFlags (1);
  };

-- 
albert chin (china@thewrittenword.com)
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic