QCustomPlot Discussion and Comments

QCustomplot in VS?Return to overview

Hey,

I want to use QCustomPlot in an Visual Studio 2010 project that already includes Qt.
I get the following error:

Creating library ..\..\..\..\..\bin\win64\vc_100\rb_graph_plotter\release\rb_graph_plotter.lib and object ..\..\..\..\..\bin\win64\vc_100\rb_graph_plotter\release\rb_graph_plotter.exp
1>graph_plotterfilter.obj : error LNK2019: unresolved external symbol "public: __cdecl QCustomPlot::QCustomPlot(class QWidget *)" (??0QCustomPlot@@QEAA@PEAVQWidget@@@Z) referenced in function "public: void __cdecl Ui_Graph::setupUi(class QWidget *)" (?setupUi@Ui_Graph@@QEAAXPEAVQWidget@@@Z)1>..\..\..\..\..\bin\win64\vc_100
...
\rb_graph_plotter\release\rb_graph_plotter.plb : fatal error LNK1120: 6 unresolved externals

It seems like the .cpp file is almost empty.
Can anyone explain that to me???

Including the self build moc_qcustomplot.cpp was the solution.