Compile a C++ Builder project to a self running program


I'm trying to compile C++ Builder project so it can be run on other computers without C++ Builder. I'm using Borland C++ Builder 2006.

Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

cant remember off the top of my head but you do something litke:  project properties >> compiler >> untick runtime packages.
I willl check when I get home. The extact path of the compiler property
Pretty much the same as in prior versions,  just rearranged a bit on the interface,

So go to project options,  down to packages and unclick the 'Build with runtime packages' option.  This will build the package code into your exe.

Second under Linker,  go to the Linking section and uncheck 'Use dynamic RTL'.  This builds in the core borland stuff.

Your exe files will be much larger but self contained.
EimundAuthor Commented:
Hey, thanks for your answers, but it didn't work!

The exe file become larger when I unchecked the "Use dynamic RTL".

Under package options the "Design time and runtime package" was checked. There were three options and I had to select one of them. The other two was "Design time only package", witch I tryed, and "Runtime only package".

The error I get when I run it on another computer is that it can't find vcl100.bpl.

Wrong spot look farther down the main list not in the linker section,  2nd last from the very bottom is title 'Packages',  select that.

Now at the bottom area of the window is a 'Build with runtime packages' checkbox -  uncheck it.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial

to make a standalone exe from a bcb 2006 project this is what you need to do :

go to:

Project -> Options -> Packages

and uncheck "Build With Runtime Packages"

and then go to :

Project -> Build Configurations

pick up from the drop down list "Release Build"

and then select your project down in the list and  click on Apply ensure that your project changes from Debug Build to Release Build

then go to Project -> Build All Projects

and thats all!!

in your project folder will appear a new folder called "Release" that contains your Stand Alone exe

hope it helps

David Segovia

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Editors IDEs

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.