Implementieren von virtuellen Methoden bei wxMenuBar und wxNotebook



  • Hallo!

    Hab ein Fehlermeldung für wxMenuBar und wxNotebook!

    menubar = new wxMenuBar();
    

    Multiple markers at this line
    - The type 'wxMenuBar' must implement the inherited pure virtual method
    'wxMenuBarBase::SetLabelTop'
    - The type 'wxMenuBar' must implement the inherited pure virtual method
    'wxMenuBarBase::EnableTop'
    - The type 'wxMenuBar' must implement the inherited pure virtual method
    'wxMenuBarBase::GetLabelTop'

    itemNotebook = new wxNotebook( this, wxID_ANY, wxDefaultPosition, wxSize(300, 300), wxBK_DEFAULT );
    

    Multiple markers at this line
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::SetSelection'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::SetPageImage'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::GetPageImage'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::GetPageText'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::ChangeSelection'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::SetPageText'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::InsertPage'
    - The type 'wxNotebook' must implement the inherited pure virtual method
    'wxBookCtrlBase::DoRemovePage'

    Ich kann mir das ganze nicht erklären!
    Wenn ich auf meinem anderen Rechner Compiliere bring er keine Fehlermeldung!

    Hat jemand einen Tipp für mich wo ich suchen kann?



  • Zu wenige Informationen.

    Deine Fehlermeldungen sagen mir nur, dass virtuelle Methoden von den vererbenden Klassen nicht in den erbenden implementiert wurden, also diese etwa in den Klassendefinitionen fehlen oder die Source nicht gelinkt wurde.



  • Sorry, das war kein Fehler vom gcc Compiler sondern von Eclipse! Habe einmal in einer älteren Version von Eclipse laufen lassen und da kommt kein Fehler.

    warum sollte auch wxMenuBar von wxBookCtrlBase virtuelle Methoden implementieren.

    Aber warum mir Eclipse das vor den Kopf haut begreif ich nicht.

    Na ja, es geht auch so weiter!

    Danke noch mal an alle!


Anmelden zum Antworten