-
March 26th, 2006, 07:17 AM
#1
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!
-
March 26th, 2006, 07:47 AM
#2
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()!
-
March 26th, 2006, 07:56 AM
#3
Re: Borland Compiler problems
kk thanx!
how do i link with the dynamic library?
-
March 26th, 2006, 08:16 AM
#4
Re: Borland Compiler problems
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|