000
25.08.2005, 10:34 Uhr
~jogibear9988
Gast
|
Hallo,
Ich habe an einer erweiterung an einem Prg unter Linux geschrieben. (mythTV Plugin)
Nun habe Ich folgendes problem. das programm startet nicht und bringt mir folgenden fehler: undefined symbol _ZTV19MythSearchRomDialog.
Mein zusätzliches Source File sieht so aus: searchrom.cpp
C++: |
using namespace std; #include "searchrom.h" #include <mythtv/mythdialogs.h> #include <mythtv/mythwidgets.h> #include <mythtv/mythcontext.h> void MythSearchRomDialog::dosearch(void) { MythPopupBox *search_rom_popup = new MythPopupBox(gContext->GetMainWindow(), "search_rom_popup");
// create the widgets search_rom_popup->addLabel(QString("Search for Rom...")); editor = new MythRemoteLineEdit(search_rom_popup); //connect(editor, SIGNAL(textChanged()), this, SLOT(searchTextChanged())); search_rom_popup->addWidget(editor); editor->setFocus(); search_rom_popup->addButton(tr("OK"), search_rom_popup, SLOT(okPressed())); search_rom_popup->addButton(tr("Cancel"), search_rom_popup, SLOT(cancelPressed())); }
void MythSearchRomDialog::okPressed(void) { }
void MythSearchRomDialog::cancelPressed(void) { }
MythSearchRomDialog::~MythSearchRomDialog() { if (editor) { delete editor; editor = NULL; } }
|
und so das headerfile:
C++: |
#ifndef GAMESEARCH_H_ #define GAMESEARCH_H_ #include <mythtv/mythdialogs.h> #include <mythtv/mythdialogs.h> #include <mythtv/mythwidgets.h> class MythSearchRomDialog //: public MythPopupBox { Q_OBJECT
public: ~MythSearchRomDialog();
public: void dosearch(void);
protected slots: void okPressed(void); void cancelPressed(void);
private:
QLabel *caption; MythRemoteLineEdit *editor; QButton *ok_button; QButton *cancel_button; MythPopupBox *search_rom_popup; };
#endif
|
und so der aufruf aus anderm sourcefile:
headerfile: ... private: MythSerachRomDialog *srom; ...
cppfile: ... srom = new MythSearchRomDialog srom->dosearch(); ...
was mache ich falsch?? wo ist mein denkfehler?? compilieren geht ohne probleme...
mod edit: Benutze die CPP Tags selber Dieser Post wurde am 25.08.2005 um 16:14 Uhr von Pablo editiert. |