PDA

View Full Version : "Can't find linker symbol for virtual table" problem



Momergil
12th June 2014, 02:59
Hello!

I have a widget project that uses Qt 5.2/Windows. For debug purposes, I decided to create a QDialog inside my main() method that would only call some pushbuttons asking if I want to debug or not. But the problem is that, if I run my app in debug mode after initilizing a QPushButton (even if not having my debug QDialog as parent), I got the error:



can't find linker symbol for virtual table for `QApplication' value
found `QtPrivate::RefCount::isShared() const' instead
can't find linker symbol for virtual table for `QApplication' value
found `QtPrivate::RefCount::isShared() const' instead


in the "Application Output". I have no idea about what is causing this problem. The most interesting part is, though, that if I just run in debug mode without any breakpoints, then the dialog appears normally with everything working and no errors are shown; this only happens if I put a breakpoint at the QApplication initilization; then, when the debugger stops in this breakpoint, the message appears.

What may be causing this messages to appear when I create this QPushButtons?

Thanks,

Momergil