Board index » cppbuilder » Fully static linking
Brendan
![]() CBuilder Developer |
Brendan
![]() CBuilder Developer |
Fully static linking2005-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. |
Yu-Chen Hsueh
![]() CBuilder Developer |
2005-01-18 08:17:11 AM
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 -- |
Brendan
![]() CBuilder Developer |
2005-01-18 08:50:16 AM
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: QuoteThat having been said, BCB6 should be referencing VCL50.BPL at all. If it {smallsort} |