CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Mar 2006
    Posts
    8

    Borland Compiler problems

    i got some problem with the Borland C++ Builder 6 compiler settings

    When i compile my tools with the default settings i have a nice and small size but the app wont run on other pcs without Borland runtime files
    If i inclute the runtime files my app gets tooo big , bigger than VB apps
    Does any1 use C++ Builder 6 here and have the same problem , or can any1 tell me the best setting to work with all pcs with the minimum size?

    thanx!

  2. #2
    Join Date
    Feb 2005
    Location
    Normandy in France
    Posts
    4,590

    Re: Borland Compiler problems

    You should link your application with the dynamic library!
    It produces smaller executables.
    But also with dynamic linkage, you benefit from the last version of the DLL, with all bug corrections.
    With static linkage, if there is a bug in the library, clients won't be able to remove it, even if they download the last version of the dynamic library.

    The dynamic library is relatively big, but common to all Borland applications.
    So, it is not a real problem.

    If you want to distribute your application(s) you should distribute the DLL with it (and allow to download it separately), or give a link to a location where clients can download it on Internet.
    "inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
    Club of lovers of the C++ typecasts cute syntax: Only recorded member.

    Out of memory happens! Handle it properly!
    Say no to g_new()!

  3. #3
    Join Date
    Mar 2006
    Posts
    8

    Re: Borland Compiler problems

    kk thanx!
    how do i link with the dynamic library?

  4. #4
    Join Date
    Feb 2005
    Location
    Normandy in France
    Posts
    4,590

    Re: Borland Compiler problems

    Quote Originally Posted by A-Ray
    how do i link with the dynamic library?
    With Borland C++ 5.0, there was an option "Dynamic library" in the Target Expert (that you get when you create a new project).
    From the command line, there is an option, such as -tWD
    To have a list of command line options, just call bcc32.exe without arguments.
    "inherit to be reused by code that uses the base class, not to reuse base class code", Sutter and Alexandrescu, C++ Coding Standards.
    Club of lovers of the C++ typecasts cute syntax: Only recorded member.

    Out of memory happens! Handle it properly!
    Say no to g_new()!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured