Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct
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
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
to help use Qt. but i guess you have a normal vs project ?
Yes it is a normal VS project.
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
but not finding which .dll or .lib to add
My guess would be
core gui widgets printsupport
as that is needed for running CustomPlot examples.