hi every one i am working a in qt and qwt but in my program i am getting these error
undefined reference to `vtable for MainWindow' error: collect2: ld returned 1 exit status
i didnt get it what is the meaning of these error can some one explain it as apparently i have no error in my code
thanks
You're not linking to everything you should. You need to run moc on your .cpp files, and add e.g. #include "moc_myfile.cpp"
to the end of myfile.cpp
Alternatively, you have declared a virtual function (destructor perhaps) without defining it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With