[Qt-interest] Problem porting software to QT
fungos
fungos at gmail.com
Thu Apr 9 05:46:53 CEST 2009
Hi, I'm trying to do a production software port to Qt, but when I add
"Q_OBJECT" macro to an existing class I got these weird vtable errors,
see:
Creating library file: debug\libEngineQt.a
./debug\QtScreen.o: In function `ZN3Engine2QT7Graphic6ScreenC2Ev':
D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31: undefined
reference to `vtable for Engine::QT::Graphic::Screen'
D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31: undefined
reference to `vtable for Engine::QT::Graphic::Screen'
D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31: undefined
reference to `vtable for Engine::QT::Graphic::Screen'
./debug\QtScreen.o: In function `ZN3Engine2QT7Graphic6ScreenC1Ev':
D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31: undefined
reference to `vtable for Engine::QT::Graphic::Screen'
D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31: undefined
reference to `vtable for Engine::QT::Graphic::Screen'
./debug\QtScreen.o:D:/Development/Qt/SDK/Source/platform/qt/QtScreen.cpp:31:
more undefined references to `vtable for Engine::QT::Graphic::Screen'
follow
collect2: ld returned 1 exit status
mingw32-make[1]: *** [debug\EngineQt.dll] Error 1
mingw32-make: *** [debug] Error 2
Exited with code 2.
Error while building project Engine
When executing build step 'Make'
This specific class currently is declared this way:
class Screen : public IScreen, public QGraphicsScene
{
Q_OBJECT // this causes the error....
friend ...
private:
...
};
Any suggestions?
--
Animal Frontline Liberation
More information about the Qt-interest-old
mailing list