Ich habe in letzter ein doch jetzt schon sehr langen c++ programm geschrieben, das mit QT arbeitet.
Doch auf einmal hat sich da ein <B>nicht normaler </B>fehler eingeschlichen, d.h. es ich kein richtiger syntaxfehler, er lautet:
<PRE>
g++ -o Menu -L/usr/lib/qt-2.2.3/lib -I/usr/lib/qt-2.2.3/include Main.cpp -lqt Document.o Bibliothek.o Menu.o
Document.o: In function `Document:ocument(QWidget *, char const *, int)':
Document.o(.text+0x27): undefined reference to `Document::QPaintDevice virtual table'
Document.o(.text+0x31): undefined reference to `Document virtual table'
Bibliothek.o: In function `Bibliothek::Bibliothek(void)':
Bibliothek.o(.text+0x1e): undefined reference to `Bibliothek::QPaintDevice virtual table'
Bibliothek.o(.text+0x25): undefined reference to `Bibliothek virtual table'
Menu.o: In function `Menu::Menu(void)':
Menu.o(.text+0x101): undefined reference to `Menu::QPaintDevice virtual table'
Menu.o(.text+0x108): undefined reference to `Menu virtual table'
collect2: ld returned 1 exit status
make: *** [Menu] Error 1
</PRE>
kann mir jemand bitte helfen?
Doch auf einmal hat sich da ein <B>nicht normaler </B>fehler eingeschlichen, d.h. es ich kein richtiger syntaxfehler, er lautet:
<PRE>
g++ -o Menu -L/usr/lib/qt-2.2.3/lib -I/usr/lib/qt-2.2.3/include Main.cpp -lqt Document.o Bibliothek.o Menu.o
Document.o: In function `Document:ocument(QWidget *, char const *, int)':
Document.o(.text+0x27): undefined reference to `Document::QPaintDevice virtual table'
Document.o(.text+0x31): undefined reference to `Document virtual table'
Bibliothek.o: In function `Bibliothek::Bibliothek(void)':
Bibliothek.o(.text+0x1e): undefined reference to `Bibliothek::QPaintDevice virtual table'
Bibliothek.o(.text+0x25): undefined reference to `Bibliothek virtual table'
Menu.o: In function `Menu::Menu(void)':
Menu.o(.text+0x101): undefined reference to `Menu::QPaintDevice virtual table'
Menu.o(.text+0x108): undefined reference to `Menu virtual table'
collect2: ld returned 1 exit status
make: *** [Menu] Error 1
</PRE>
kann mir jemand bitte helfen?