Page 1 of 2
UNRESOLVED EXTERNAL'__fastcall Teengine:: n (2)
Posted: Fri Aug 22, 2008 7:23 am
by 10049520
Hi,
I am migrating a project from Borland C++ Builder 2006 to Borland 2007 and from Teechart6 to Teechart v8.01 PRO and I get the several errors when linking of the type:
Unresolved external '__fastcall Teengine:: n
I have read your suggestions and I have found that in the builder menu: Project->Options->paths and defines, the library corresponding to TeeChart6 is selected by default and I cannot erase it from the library path list, even if I have already uninstalled Teechart6.
Any clues? Could somebody help me?
Posted: Fri Aug 22, 2008 8:33 am
by yeray
Hi jica,
Probably your project is referencing old teechart libraries and this confuses the builder.
Try to edit the project bpr file manually (with notepad for example) and look for the lib paths and package references and update them for the correct ones.
Posted: Fri Aug 22, 2008 10:31 am
by 10049520
Thanks a lot Yeray,
Your suggestion works partially. In fact I don´t get the unresolved externals any more, but now I get the following link Error:
Fatal:Unable to open file 'TEEIMAGE6C6.BPI'
This file was previously included in the PACKAGES value list of the .bpr file. However I have replaced it for the correspondig TeeImage811.bpi of the new Teechart.
Meanwhile in the borland project options the library path of TeeChart 6 remains included.
Posted: Fri Aug 22, 2008 12:03 pm
by Pep
Hi,
notice that your project is trying to load old bpi's (TEEIMAGE6C6). Edit your project again and look for "6C6" which means TeeChart Pro v6 for BCB 6 and replace by "8C6" which means TeeChart Pro v8 for BCB6.
Posted: Mon Aug 25, 2008 2:11 pm
by 10049520
Hello,
I´m trying to replace Tee...6C6 files with their equivalent files of TeeChart Pro v8.01. This works for most of my project files and I can successfully build them. However when editing one of my projects files, it includes a <PACKAGES value="TeeQR6C6.bpi" and I couldn´t find any TeeQR files in the TeeChart folders. I have tried to replace it with TeeQR8C6.bpi, but when I open the file I get a message:
'Index out of bounds (1)' and when trying to compile it I get a linking error: 'Fatal Error: TeeQR811.BPI could not be opened'
Could you please help me with this problem?
Best regards
Jon
Posted: Mon Aug 25, 2008 2:24 pm
by narcis
Hi Jon,
Quick Report packages may not have been installed automatically. You could check them as suggested in the
QuickReport article
here.
Posted: Mon Aug 25, 2008 2:34 pm
by 10049520
Thankyou for your quick answer.
I forgot to say that I actually encountered two files DclTQR811.dpk and DclTQR811.res. Doesn´t this mean Quick Report packages have been installed? Should I still have to follow all the steps?
Best regards
Jon
Posted: Mon Aug 25, 2008 2:37 pm
by narcis
Hi Jon,
No, that only means that you have those files in your hard drive. I recommend you to check if QuickReport packages installed and if they aren't follow the article to install them.
Posted: Tue Aug 26, 2008 8:53 am
by 10049520
Hi Narcís,
I am trying to follow the steps of the QuickReport article but I keep getting problems.
Step 6, says: Install QuickReport with Delphi closed.
So I go to the QuickReport folder in the path
C:\..\Steema Software\TeeChart 8.01 for Delphi 2007\Delphi11\QuickReport
and I find an install.txt file that explains the following installation procedure:
'Open and compile the following packages:
Tee8QR4Dxx.dpk Run-time package.
DclTee8QR4Dxx.dpk Design-time package.'
However Codegear c++builder 2007 doesn´t let me open these files and consequently I cannot compile none of them. Besides, how could I compile them following what the article says: 'install QR with Delphi closed'?
Posted: Tue Aug 26, 2008 8:59 am
by narcis
Hi Jon,
Sorry, I missed that you were using C++ Builder 2007.
The problem here is that Quick Report made different packages for Delphi and C++ Builder personalities. This causes problems with TeeChart's references as TeeChart's packages are the same for Delphi and C++ Builder.
To solve this issue you could read
this thread. I've sent you the files I mentioned there.
Hope this helps!
Posted: Tue Aug 26, 2008 9:43 am
by 10049520
Hi Narcís,
Thanks for your answer.
I have taken the file Tee8QR4C11.bdsproj to compile it, but I get an error because the builder cannot find QR4RunC2007.bpi.
In fact the content of Tee8QR4C11.cbproj includes:
<ItemGroup>
<PackageImport Include="QR4RunC2007.bpi">
...
which I cannot find anywhere.
Could I get it anywhere?
Best regards
Jon
Posted: Tue Aug 26, 2008 9:51 am
by narcis
Hi Jon,
Those files should be shipped with QuickReport. Alternativelly you can try using *.bpl files.
Posted: Tue Aug 26, 2008 10:15 am
by 10049520
Hi Narcís,
I´ve tried uninstalling and reinstalling Teechart again but no such files are generated in the QuickReport folder.
No files containing QR4Run could be found.
Could you please send it or tell me how could I go on with the installation?
Thanks
Jon
Posted: Tue Aug 26, 2008 10:19 am
by narcis
Hi Jon,
Sorry but Steema Software is not the author nor can deliver QuickReport files. We only develop TeeChart for QuickReport packages. For QuickReport packages I imagine you should have a valid license and contact
qusoft or ask CodeGear if such packages should be shipped with C++ Builder 2007.
Posted: Wed Aug 27, 2008 1:00 pm
by 10049520
Hi,
Excuse me for bothering you again. After fixing up a few things I get a new linking error in a different module:
[ILINK32 Error] Fatal: Unable to open file 'TEESURFA.OBJ'
Looking around I´ve found Teesurfa.hpp files in the TeeChart Pro lib folder. However I couldn´t find an .obj file.
Could you help me solve this problem?
Thanks
best regards
Jon