undefined reference to `vtable for Graphique'
Bonjour,
j'ai un petit problème de compilation.
J'ai des erreurs que je ne comprends pas, je suis aller voir sur les forums et ils parlent d'erreur dut au fonction virtuel, mais je n'en ai pas..
Est-ci que quelqu'un peu m'éclairer??
merci d'avance.
Pour information ma classe graphique hérite de QWidget, et j'ai une classe donne et uen classe controleur en plus de la classe graphique.
voila le resultat de la compilation:
Citation:
graphique.o: In function `Graphique::Graphique(Controleur*)':
graphique.cpp:(.text+0x4f): undefined reference to `vtable for Graphique'
graphique.cpp:(.text+0x56): undefined reference to `vtable for Graphique'
graphique.cpp:(.text+0x149): undefined reference to `Controleur::addGraph(Graphique*)'
graphique.cpp:(.text+0x154): undefined reference to `Controleur::getData()'
graphique.cpp:(.text+0x15f): undefined reference to `Donne::getValeur()'
graphique.o: In function `Graphique::maj()':
graphique.cpp:(.text+0x235): undefined reference to `Controleur::getData()'
graphique.cpp:(.text+0x240): undefined reference to `Donne::getValeur()'
graphique.o: In function `Graphique::userChangedValue()':
graphique.cpp:(.text+0x2f3): undefined reference to `Donne::setValeur(int)'
graphique.o: In function `Graphique::Graphique(Controleur*)':
graphique.cpp:(.text+0x36f): undefined reference to `vtable for Graphique'
graphique.cpp:(.text+0x376): undefined reference to `vtable for Graphique'
graphique.cpp:(.text+0x469): undefined reference to `Controleur::addGraph(Graphique*)'
graphique.cpp:(.text+0x474): undefined reference to `Controleur::getData()'
graphique.cpp:(.text+0x47f): undefined reference to `Donne::getValeur()'
main.o: In function `main':
main.cpp:(.text+0xbc): undefined reference to `Donne::Donne()'
main.cpp:(.text+0xd6): undefined reference to `Controleur::Controleur(Donne*)'
collect2: ld a retourné 1 code d'état d'exécution