[SOLVED]Errors while compiling
-
Hi All,
I am getting many error when compiling and cannot understand what the cause:
udpchat.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QLineEdit::QLineEdit(class QWidget *)" (_imp??0QLineEdit@@QEAA@PEAVQWidget@@@Z) referenced in function "public: __cdecl UDPChat::UDPChat(class QWidget *)" (??0UDPChat@@QEAA@PEAVQWidget@@@Z)
udpchat.obj:-1: error: LNK2019: unresolved external symbol "__declspec(dllimport) public: __cdecl QTextEdit::QTextEdit(class QWidget *)" (_imp??0QTextEdit@@QEAA@PEAVQWidget@@@Z) referenced in function "public: __cdecl UDPChat::UDPChat(class QWidget *)" (??0UDPChat@@QEAA@PEAVQWidget@@@Z)
There are about 40 errors like this.
Under each of them it states " File not found: udpchat.obj"
I have made a class udpchat class ( a sub-class of QWidget).
Please advice.
I have run QMake many times.
-
Hi,
Can you show your project pro file ?
-
Are you using Qt 4 or Qt 5 ?
Also, you should give TARGET a value
-
Hi,
Target is the name of your final executable . You should try this "tutorial":http://qt-project.org/doc/qt-4.8/qmake-tutorial.html