QCustomPlot linker

落花浮王杯 提交于 2019-12-11 04:38:52

问题


I would like to use the features of QCustomPlot to draw some results from my openCV projects.

I didn't find a way to include QCustomPlot to my Microsoft Visual Studio 2010. I have included or course the cpp and h file into my project. But, I think what is still missing for me is regarding its linker and the additional dependencies (.lib file)

1>moc_ex4.obj : error LNK2019: unresolved external symbol "public: void __thiscall ex4::plot_graphs(void)" (?plot_graphs@ex4@@QAEXXZ) referenced in function "private: static void __cdecl ex4::qt_static_metacall(class QObject *,enum QMetaObject::Call,int,void * *)" (?qt_static_metacall@ex4@@CAXPAVQObject@@W4Call@QMetaObject@@HPAPAX@Z)
1>C:\Users\310114602\Documents\Visual Studio 2010\Projects\ex4_120313\Win32\Debug\\ex4.exe : fatal error LNK1120: 1 unresolved externals

I searched for it but no results.

Where shall I download it?


回答1:


It looks like you either didn't moc your cpp file or you simply forgot to compile and link against the moc generated .cpp file.



来源:https://stackoverflow.com/questions/15383374/qcustomplot-linker

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!