Error in compilation
-
Hello, I'm learning Windows GUI programming with Qt but I encounter a problem when I compile my project in the latest version of Qt (Qt 5.1.1 vs2012 64bits). The compilation produces these 3 errors:
/////////////////////////////////////////////////////
moc_finddialog.obj:-1: erreur : LNK2019: symbole externe non résolu "public: void __cdecl FindDialog::findClicked(void)" (?findClicked@FindDialog@@QEAAXXZ) référencé dans la fonction "private: static void __cdecl FindDialog::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall@FindDialog@@CAXPEAVQObject@@W4Call@QMetaObject@@HPEAPEAX@Z)
moc_finddialog.obj:-1: erreur : LNK2019: symbole externe non résolu "public: void __cdecl FindDialog::enableFindButton(class QString const &)" (?enableFindButton@FindDialog@@QEAAXAEBVQString@@@Z) référencé dans la fonction "private: static void __cdecl FindDialog::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall@FindDialog@@CAXPEAVQObject@@W4Call@QMetaObject@@HPEAPEAX@Z)
debug\find.exe:-1: erreur : LNK1120: 2 externes non résolus
///////////////////////////////////////////////////////////
Here is the header file code:
*#ifndef FINDDIALOG_H
#define FINDDIALOG_H#include <QObject>
#include <QDialog>class QLabel;
class QPushButton;
class QLineEdit;
class QCheckBox;
class QString;namespace Ui {
class FindDialog;
}class FindDialog : public QDialog
{
Q_OBJECTpublic:
explicit FindDialog(QWidget *parent = 0);
~FindDialog();public slots:
void findClicked();
void enableFindButton(const QString &text);signals:
void findPrevious(const QString &str, Qt::CaseSensitivity cs);
void findNext(const QString &str, Qt::CaseSensitivity cs);private:
Ui::FindDialog *ui;
};#endif // FINDDIALOG_H
*
////////////Please help me to resolve this problem.