10-08-2013 06:39 AM
I created a static library with sdk 10.2gold. I now get problem with the QObject. The static library builts ok with Q_OBJECT. But, when I reference my static lib in the cascade application, the compiler gets the error below.
undefined reference to `vtable for ClassName'
My static library needs to include some QObject with slots and signals. could anyone tell me how to solve this problem?
10-10-2013 05:41 AM
This sounds like a linking problem rather than compilation. I don't understand your reference to Q_OBJECT however. Can you elaborate please?
What is the name of your static library, where have you placed it and what does the content of your .pro file look like?
10-10-2013 11:33 AM
Is moc being run correctly?
Are your virtual functions implemented?
Try compiling a class in a Qt project, then as your library and compare the output of;
ntoarm-readelf -a <yourmodulename>