After cleaning and rebuilding my project with QCP2.0.0 , I'm now facing the a linker problem with QCPLayoutElement, more precisely the "setSizeConstraintRect" function...
moc_qcustomplot.obj:-1: error: LNK2001: unresolved external symbol "public: void __cdecl QCPLayoutElement::setSizeConstraintRect(enum QCPLayoutElement::SizeConstraintRect)" (?setSizeConstraintRect@QCPLayoutElement@@QEAAXW4SizeConstraintRect@1@@Z)
if I comment the line 1190 :
Q_PROPERTY(SizeConstraintRect sizeConstraintRect READ sizeConstraintRect WRITE setSizeConstraintRect)
I'm able to compile, everything seems to work fine until I try to close my program and delete a QCPLayoutElement, it crash with the message :
Debug Error !
Program:
..../name_of_our_program.exe
HEAP CORRUPTION DETECTED: after Normal block(#294177) at 0x00000.......... CRT detected that the application wrote to memory after end of heap buffer.
Does somebody had this linker problem... and how should I solve it... ???
I also had some linker problem related to these virtual functions :
virtual QSize minimumOuterSizeHint() const;
virtual QSize maximumOuterSizeHint() const;
which I had to reimplement in my custom classes that inherited from QCPAxisRect. but after implementing them, the errors were gone except the one for the setSizeContraintRect in qcustomplot....
Any help would be much appreciated !