PDA

View Full Version : Deriving QwtPlotCurve



WoldemarShiPa
30th October 2013, 13:35
Hello. I need to draw a piecewise curve, so I decided to derive QwtPlotCurve and reimplement drawCurve method. I'm using VS2010. When I create new class inherited from QwtPlotCurve I get errors:

Error 4 error LNK1169: one or more multiply defined symbols found
Error 1 error LNK2005: "public: virtual void __thiscall QwtSeriesStore<class QPointF>::setRectOfInterest(class QRectF const &)" (?setRectOfInterest@?$QwtSeriesStore@VQPointF@@@@U AEXABVQRectF@@@Z) already defined in QwtPlotCurve2.obj
Error 2 error LNK2005: "public: virtual unsigned int __thiscall QwtSeriesStore<class QPointF>::dataSize(void)const " (?dataSize@?$QwtSeriesStore@VQPointF@@@@UBEIXZ) already defined in QwtPlotCurve2.obj
Error 3 error LNK2005: "public: virtual class QRectF __thiscall QwtSeriesStore<class QPointF>::dataRect(void)const " (?dataRect@?$QwtSeriesStore@VQPointF@@@@UBE?AVQRec tF@@XZ) already defined in QwtPlotCurve2.obj

New class contains only default constructor and destructor.
If I create inline class, stored in one header-file, I get no errors.
What the problem? Thanks.

anamika11
3rd September 2014, 12:24
first of all, i don't know whether this is the solution for my problem or not. my problem is i am not able to download files from appache server which has SSL communicatio and i am able to downlaod files from some other servers. that's why i am asking Qssl may be prevent my problem. is it correct approach?

belinda1
25th June 2020, 09:45
contains only default constructor and destructor.
If I create inline class, stored in one header-file, I get no errors, but I can't declare member variables
What the problem? Thanks.