Page 1 of 1

Cant derive from TChart in version 2015 or 20142014

Posted: Sun Feb 01, 2015 3:31 am
by 16569078
I am getting a linker error similar to http://www.teechart.net/support/viewtop ... =3&t=12614... When I have a class derived from TChart and exported as PACKAGE I get linker error:

[ILINK32 Error] Error: Unresolved external '__fastcall Teeprocs::TCustomTeePanelExtended::GetDeviceContext(void *&)' referenced from K:\SUBPROJECTS\COMPONENTS\ITCOMP\OBJ\ITCHART.OBJ

I had TChart 2013 Nov for Builder 2007 installed without any linker errors and upgraded to 2015 for Builder 2007. It also happens if I used 2014 for Builder 2007. I removed references to older versions of TChart.

Any suggestions will be hugely appreciated.

Re: Cant derive from TChart in version 2015 or 20142014

Posted: Mon Feb 02, 2015 9:31 am
by yeray
Hi,

Does a new project with a just a chart on the form build and run fine in your environment?
If so, it may be a problem with the references hardcoded in your old project. And, if this is the case, I'm afraid the only way to solve this would be manually editing the project files (with notepad or similar) and correct any wrong reference you may find on it.

Re: Cant derive from TChart in version 2015 or 20142014

Posted: Sun Feb 08, 2015 12:30 am
by 16569078
I have attached a project to demonstrate the linker error. I created it from scratch in C++ Builder 2007 with the latest TChart release 2015

Re: Cant derive from TChart in version 2015 or 20142014

Posted: Mon Feb 09, 2015 1:00 pm
by yeray
Hello,

I've reproduced the error so I've created a ticket in the public tracker:
http://bugs.teechart.net/show_bug.cgi?id=1127