Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

statically linked exes-how to?

Status
Not open for further replies.

ladycoder

Programmer
Jun 26, 2003
11
GB
hello
I am currently using default setting on borland builder and creating small size exes (30kb)that will not run on other pc's that do not have borlands installed but show that it cant find file vcl50.bpl or borlndmm.dll. i have seen much larger exes in the order of 575kb which do not display this problem so I need to pack them up in the exe but icant see how to do it in the options in projects. Can anyone help? basically I need a statically linked exe that will run on any pc thx
-Shaf
bit urgent this one its 6th nov 2003 today would like it before 7th.
 
You need to do 2 things :
1. Project->Options->Packages-> uncheck Build With RunTime Packages
2. Projects->Options->Linker-> switch off Use Dynamic RTL

and that's it! You will end up with 1-2MB exe file instead.
 
Ahhh yes, thanks! I was only deselecting the 'dynamic RTL' which bumped up the file size but was still not running the exe unless borlands was on the pc, but deselecting the 'build with runtime packages' did the trick. It stopped it looking for vcl50.bpl and borlndmm.dll so I guess thats all fine and dandy!

Many thanks you are a star!!

Shaf

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top