Dependencies

This is a discussion on Dependencies within the Windows Programming forums, part of the Platform Specific Boards category; I'm new with Borland C++ Builder. I have the following problem when I make a program. It works just fine ...

  1. #1
    Registered User
    Join Date
    Dec 2005
    Posts
    167

    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

  2. #2
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  3. #3
    Registered User
    Join Date
    Dec 2005
    Posts
    167
    i don't seem to find anything related to that topic... any idee on what to search ?

  4. #4
    erstwhile
    Join Date
    Jan 2002
    Posts
    2,227
    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.
    CProgramming FAQ
    Caution: this person may be a carrier of the misinformation virus.

  5. #5
    Registered User
    Join Date
    Dec 2005
    Posts
    167
    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!

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Makefile dependencies
    By taurus in forum C Programming
    Replies: 1
    Last Post: 11-09-2008, 12:17 AM
  2. GNU make - generating dynamic dependencies
    By OriginalCopy in forum Linux Programming
    Replies: 0
    Last Post: 05-15-2008, 11:41 AM
  3. Replies: 0
    Last Post: 09-24-2006, 07:26 AM
  4. C++ library dependencies on compilers
    By danglingelse in forum C++ Programming
    Replies: 1
    Last Post: 03-31-2006, 11:42 PM
  5. External Dependencies
    By Garfield in forum Windows Programming
    Replies: 2
    Last Post: 11-16-2001, 12:51 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21