A
Änderung in der TESTMain.h (Zeilen 27, 28, 29) liefert nun die Meldungen:
undefined reference to \_imp\_\_\_ZN13wxTaskBarIconC2Ev' undefined reference tovtable for Tray'
Mit dieser Meldung kann ich leider überhaupt nichts anfangen.
Wo könnte die Ursache diees Fehlers liegen?
TESTMain.h
#ifndef TESTMAIN_H
#define TESTMAIN_H
//(*Headers(TESTFrame)
#include <wx/frame.h>
//*)
#include "sample.xpm"
#include <wx/taskbar.h>
class Tray : public wxTaskBarIcon
{
public:
Tray(wxWindow* parent)
: wxTaskBarIcon() , m_parent(parent) //undefined reference to `_imp___ZN13wxTaskBarIconC2Ev'
//undefined reference to `vtable for Tray'
{}
virtual ~Tray()
{
if ( IsIconInstalled() )
{
RemoveIcon();
}
}
private:
wxWindow* m_parent;
DECLARE_EVENT_TABLE()
};
class TESTFrame: public wxFrame
{
public:
TESTFrame(wxWindow* parent,wxWindowID id = -1);
virtual ~TESTFrame();
private:
//(*Handlers(TESTFrame)
//*)
//(*Identifiers(TESTFrame)
//*)
//(*Declarations(TESTFrame)
//*)
Tray* m_tray;
DECLARE_EVENT_TABLE()
};
#endif // TESTMAIN_H
TESTMain.cpp
BEGIN_EVENT_TABLE(TESTFrame,wxFrame)
//(*EventTable(TESTFrame)
//*)
END_EVENT_TABLE()
TESTFrame::TESTFrame(wxWindow* parent,wxWindowID id)
{
//(*Initialize(TESTFrame)
Create(parent, id, wxEmptyString, wxDefaultPosition, wxDefaultSize, wxDEFAULT_FRAME_STYLE, _T("id"));
//*)
m_tray = new Tray(this);
m_tray->SetIcon(wxIcon(sample_xpm));
}
TESTFrame::~TESTFrame()
{
delete m_tray;
}