Главная страница | назад





Article #16394: DLL sizes in C++Builder and Delphi

 Question and Answer Database
FAQ1394C.txt DLL sizes in C++Builder and Delphi
Category :Linker
Platform :All
Product :C++Builder 1.x
Question:
Why are DLL's created with BCB so large compared to Delphi?
Answer:
There are a lot of reasons (exception handling code, RTTI, etc.)
but the main reason is this release of C++Builder links in more
.LIBs than necessary. One way to workaround this is you want is
the make the following change to the projects Make file. Locate
the "ALLLIB" line and delete the VCL.LIB from the line. Then
change CP32MT.LIB to CW32MT.LIB. Now your ALLIB line should
look like this:
ALLLIB = $(LIBFILES) import32.lib cw32mt.lib
Now do a Build All and rebuild your project. Assuming you didn't
receive any unresolved externals, your application should be
about 50K smaller.
7/2/98 10:32:32 AM

Last Modified: 01-SEP-99