Unsolved Qt with visual studio 2017
-
I am getting the following types of error while using qcustomplot in visual studio
................
1>qcustomplot.obj : error LNK2001: unresolved external symbol "protected: virtual void __cdecl QObject::timerEvent(class QTimerEvent *)" (?timerEvent@QObject@@MEAAXPEAVQTimerEvent@@@Z)
1>qcustomplot.obj : error LNK2001: unresolved external symbol "__declspec(dllimport) public: static struct QHashData const QHashData::shared_null" (_imp?shared_null@QHashData@@2U1@B)
1>C:\Users\user\source\repos\Project5\x64\Debug\Project5.exe : fatal error LNK1120: 589 unresolved externals
1>Done building project "Project5.vcxproj" -- FAILED.
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped =========
Perhapes I am missing some .lib file , but unable to figure it out -
Hi
qcustomplot uses Qt.
So i think you are not linking to Qt dlls which would normally happen if it was a
Qt enabled project.
Normally people use
http://doc.qt.io/qtvstools/index.html
to help use Qt. but i guess you have a normal vs project ? -
Yes it is a normal VS project.
-
@yabhishek
Well then you bascially just have to link to the Qt dlls like you would nay other external
lib. At least QtCore QtGui i would imagine. -
I have followed the steps mentioned here
http://ldmartin68.com/QTSetup4VSNET.html
but not finding which .dll or .lib to add -
@yabhishek
My guess would be
core gui widgets printsupport
as that is needed for running CustomPlot examples.