Hi,
I have a class in library as:
Where in Windows, MY_EXPORT is defined as "__declspec(dllexport)"
Now I use this class to build executable by linking to its library
Code:
class DerivedWidget : public MyWidget { Q_OBJECT ... };.
On linking, it complains errors:
moc_DerivedWidget.obj : error LNK2001: unresolved external symbol "public: static struct QMetaObject const MyWidget::staticMetaObject" (?staticMetaObject@MyWidget@@2UQMetaObject@@B)
Please help. Many thanks!
