Je suis nouveau à Qt et maintenant je développe une application simple à l'aide de Visual Studio 2008 et quand je construis le code, les erreurs suivantes se produisent:Comment résoudre une erreur LNK2001: symbole externe non résolu?
error LNK2001: unresolved external symbol "public: virtual struct QMetaObject const * __thiscall Window::metaObject(void)const " ([email protected]@@[email protected]@XZ)
error LNK2001: unresolved external symbol "public: virtual void * __thiscall Window::qt_metacast(char const *)" ([email protected]@@[email protected])
error LNK2001: unresolved external symbol "public: virtual int __thiscall Window::qt_metacall(enum QMetaObject::Call,int,void * *)" ([email protected]@@[email protected]@@[email protected])
error LNK2001: unresolved external symbol "public: static struct QMetaObject const Window::staticMetaObject" ([email protected]@@[email protected]@B)
fatal error LNK1120: 4 unresolved externals
Comment puis-je résoudre ces erreurs?
Vérifiez toutes les dépendances ... Sur Visual Studio, accédez à Propriétés du projet -> Liaison et recherchez les binaires qt4 – jose