Page 1 of 1

Linker error: Unable to open CHART.OBJ

Posted: Wed Apr 18, 2012 6:03 am
by 16459186
Hi,
I have lately been trying to link a package containing some forms using TeeChart, using unilink opposed to ilink32.

I am getting the following linker error:
[ILINK32 Error] Fatal: Unable to open file 'CHART.OBJ'

I have the following in my pavckage cpp file:
#pragma comment(lib, "Tee915.bpi")
#pragma comment(lib, "TeePro915..bpi")
#pragma comment(lib, "TeeUI915.bpi")

Any help appreciated.

I am using Rad Studio C++ XE and TeeChart pro Version 2011.03.30407

totte

Re: Linker error: Unable to open CHART.OBJ

Posted: Wed Apr 18, 2012 3:17 pm
by yeray
Hi Totte,

Please, make sure the TeeChart Include path is in the IDE Include list and the TeeChart Lib and Lib\Obj paths are in the IDE Library list.
Then, try if a new simple project with just a chart on the form works fine. If so, the problem should be a wrong reference in the old project. If that's the case, you should correct it manually editing (with notepad or similar) the project files and correcting any wrong reference you may find.

Re: Linker error: Unable to open CHART.OBJ

Posted: Wed Apr 18, 2012 4:51 pm
by 16459186
I correct my first post, I'm not using unilink, but the regular ilink32

I created a new package, added a form with a TeeChart on and checked all paths.
I have
C:\Program Files (x86)\Steema Software\TeeChart 2011 for Delphi 2011\Delphi15\Lib
C:\Program Files (x86)\Steema Software\TeeChart 2011 for Delphi 2011\Delphi15\Lib\Obj
in the Library path and
C:\Program Files (x86)\Steema Software\TeeChart 2011 for Delphi 2011\Delphi15\Include
in the include path

I even re-installed Tee from scratch and still get that linker error

This is puzzling..?
tk

Re: Linker error: Unable to open CHART.OBJ

Posted: Fri Apr 20, 2012 1:01 pm
by yeray
Hi Totte,

Please, take a look at the article here:
http://zachsaw.blogspot.com.es/2008/10/ ... -file.html