Building Static Packages
Go Up to Compiling Packages
Building a C++ static package library (.lib) requires a set of C++ object files that are different from the C++ object files used to build the dynamic library (.bpl).
When you perform a build or make command, the C++ compiler produces two sets of C++ object files as follows:
- The C++ object files for the dynamic library (.dll or .bpl) are built with:
BCC32 -D_RTLDLL;USEPACKAGES
or:DCC32 -JPHNE
(Generate C++ object file, C++ header file, in namespace, export all)
- The C++ object files for the static library (.lib) are built with:
BCC32 -U_RTLDLL;USEPACKAGES
or:DCC32 -JPHN
(Generate C++ object file, C++ header file, in namespace)
- For both types of library, the TLIB Library Manager creates the actual library, in the
\bpilib
directory.
The C++ object files for the dynamic library (.bpl) are output into your project directory.
The C++ object files for the static library (.lib) are output into a subdirectory created in your project directory, typically the \Debug\Win32\staticobjs
directory.