-
Dependencies
I'm new with Borland C++ Builder. I have the following problem when I make a program. It works just fine on my computer but when I send it to other that do not have BCB installed on their computer it asks them some files. For example for a small Win32 Program that writes a file with a TopenDialog it asks for:
Code:
BORLNDMM.DLL
CC3270MT.DLL
rtl100.bpl
vcl100.bpl
How can I make the app not ask for them. They are considerably larger than the program.
The app has 70KB and those file about 5MB
-
Rebuild your application with static linkage to vcl and other libs; check the compiler documentation for the switch(es) to do this. This will make your program larger but will side-step the need to redistribute the dlls. However, if you intend to distribute a number of applications using vcl etc. then you should consider sticking with dynamic linkage and distributing the required dlls.
-
i don't seem to find anything related to that topic... any idee on what to search ?
-
This page, although old, seems to offer instructions for statically linking vcl; other options are presumably available from the same point of configuration, assuming your version of bcb has similar project options.
-
Code:
1. Under the Project menu, select the Options menu item
2. Click on the Linker tab
3. Make sure the "Use dynamic RTL" option is NOT checked
4. Click on the Packages tab
5. Make sure the "Build with runtime packages" option is NOT checked
6. Click the OK button to dismiss the dialog
7. Pick Save from the File menu to commit your changes
8. Pick "Build all projects" from the Project menu to rebuild
this worked for me!
thanks! :)