Board index » cppbuilder » VCL60.bpl not found and linker errors

VCL60.bpl not found and linker errors


2006-11-08 07:50:20 AM
cppbuilder45
Greetings,
I have a DLL built using CB6 that upon deployment generated errors
that VCL60.bpl could not be found. I did a web search and found a
powerpoint presentation that explained how to setup static linking by
unchecking the Build with Runtime Packages on the packages page and
unchecking the Build with Runtime Packages on the Linker page of the
project options.
When I rebuild without those options checked, I get a linker error:
[Linker Error] Unresolved external 'Dbtables::EDBEngineError::'
referenced from E:\CIFASV2\CHARMBLD\UTILITY.OBJ
I checked the referenced module and added an #include for the
<vcl\DBTables.hpp>file but still receive the error.
What am I missing to eliminate the need for distributing the VCL60,bpl
file and rebuilding the DLL with static linking?
TIA,
- Bob
 
 

Re:VCL60.bpl not found and linker errors

"Robert Boyd" < XXXX@XXXXX.COM >wrote in message
Quote
I have a DLL built using CB6 that upon deployment generated
errors that VCL60.bpl could not be found.
You built the DLL with runtime packages enabled, and then did not deploy the
runtime packages themselves with the DLL.
Quote
When I rebuild without those options checked, I get a linker error:
[Linker Error] Unresolved external 'Dbtables::EDBEngineError::'
referenced from E:\CIFASV2\CHARMBLD\UTILITY.OBJ
You probably don't have the dbx or bdertl library included in your DLL
project.
Gambit
 

Re:VCL60.bpl not found and linker errors

Gambit,
Thanks for the quick reply...
Quote
You built the DLL with runtime packages enabled, and then did not deploy the
runtime packages themselves with the DLL.
Correct and I would prefer not to have to include them.
Quote
You probably don't have the dbx or bdertl library included in your DLL
project.
Neither is included in the DLL project. This DLL project is a
conversion of an old stand alone application that didn't have any
issues. How do I add these libraries? Do I use the project options
dialog or add another include statement to the referenced module?
Your assistance is greatly appreciated, I've been searching the web
but haven't found any clues...
- Bob
 

{smallsort}

Re:VCL60.bpl not found and linker errors

"Robert Boyd" < XXXX@XXXXX.COM >wrote in message
Quote
How do I add these libraries?
Open up the project's BPR file and make sure they are listed in the
LIBRARIES, SPARELIBS, and PACKAGES sections.
Quote
Do I use the project options dialog
No.
Quote
or add another include statement to the referenced module?
No.
Gambit
 

Re:VCL60.bpl not found and linker errors

"Robert Boyd" < XXXX@XXXXX.COM >wrote in message
Quote
How do I add these libraries?
When you created the DLL project, did you enable the VCL option?
Gambit
 

Re:VCL60.bpl not found and linker errors

On Tue, 7 Nov 2006 18:22:59 -0800, "Remy Lebeau \(TeamB\)"
< XXXX@XXXXX.COM >wrote:
Quote
Open up the project's BPR file and make sure they are listed in the
LIBRARIES, SPARELIBS, and PACKAGES sections.
I tried opening the project .bpr file by double clicking it and
dropping directly into the IDE's code editor but nothing happened. I
used the Project - Edit Option Source menu selection and it opened up
a .bpr.xml file that lists the following:
<LIBRARIES value="dbrtl.lib vcl.lib vclAbsDBb6.lib rtl.lib"/>
<SPARELIBS value="rtl.lib vclAbsDBb6.lib vcl.lib dbrtl.lib"/>
<PACKAGES value="vcl.bpi rtl.bpi vclx.bpi bcbsmp.bpi dbrtl.bpi
adortl.bpi vcldb.bpi
qrpt.bpi bdertl.bpi vcldbx.bpi dsnap.bpi cds.bpi bdecds.bpi
teeui.bpi
teedb.bpi tee.bpi teeqr.bpi ibxpress.bpi visualclx.bpi
visualdbclx.bpi
dbexpress.bpi dbxcds.bpi vclAbsDBb6.bpi"/>
I added dbx.lib and bdertl.lib to these sections and saved the file
but when I rebuild I get an error indictating dbx.lib could not be
found. I searched for dbx.lib on my system and it only found dbx.lib
in the BDS\lib directory. It did find a vcldx.lib in the
CBuilder6\lib directory so I'm guessing that I should you use that
correct? Am I on the right track here?
Thanks again for your continued assistance.
- Bob
 

Re:VCL60.bpl not found and linker errors

On Wed, 08 Nov 2006 17:58:59 -0700, Robert Boyd < XXXX@XXXXX.COM >
wrote:
Quote
CBuilder6\lib directory so I'm guessing that I should you use that
correct? Am I on the right track here?
I deleted the dbx.lib reference and finally got a succesful build!
The dll file size jumped from 188K to 2.1M so it appears the static
build included the necessary libs.
I don't know how I would have ever resolved this problem without this
support forum and your assistance - THANK YOU AGAIN!!!
- Bob
 

Re:VCL60.bpl not found and linker errors

"Robert Boyd" < XXXX@XXXXX.COM >wrote in message
Quote
I tried opening the project .bpr file by double clicking it and
dropping directly into the IDE's code editor but nothing happened.
Do not try to edit the BPR in the code editor. Close the project and then
use an external editor instead, such as Notepad.
Quote
I added dbx.lib and bdertl.lib to these sections
The bdertl package was already included in the sections.
Quote
when I rebuild I get an error indictating dbx.lib could not be found.
That is cause there is no such file. Only dbx.bpi exists. You can probably
ignore dbx altogether, as long as bdertl is present instead.
Quote
It did find a vcldx.lib in the CBuilder6\lib directory so I'm guessing
that I should you use that correct?
No. That is something completely different.
Gambit