Board index » cppbuilder » Fully static linking

Fully static linking


2005-01-18 08:05:02 AM
cppbuilder113
When creating a project with Borland C++ builder 6, is it possible
to link the program completely statically, such that the only DLLs
are those included in a default installation of Windows?
If so, how would I go about doing that? I've been through all the
menus I can, and I can't seem to get VCL50.BPL and RTL60.BPL to
compile statically, among others.
 
 

Re:Fully static linking

Brendan,
Go into the Project Options, then do the following:
* On the Linker tab, uncheck "Use Dynamic RTL"
* On the Packages tab, uncheck "Build With Runtime Packages"
Then hit OK and rebuild your project. It'll now be a standalone.
That having been said, BCB6 should be referencing VCL50.BPL at all. If it
is, then there could be some other issue in your project. Post the full
error message if it still wants that file.
-- YH --
 

Re:Fully static linking

Removing "Runtime packages" does what I needed. Thank you.
BCB6 references VCL60.bpl in all projects I've built. I'm not getting
this from an error message, because I tend to use a dependancy viewer
and supply the appropriates DLL before running programs I've built on
other machines.
Yu-Chen Hsueh wrote:
Quote
That having been said, BCB6 should be referencing VCL50.BPL at all. If it
is, then there could be some other issue in your project. Post the full
error message if it still wants that file.
 

{smallsort}