Package Dynamic Library File

From RAD Studio
Jump to: navigation, search

Go Up to File Types Index


When you build a package for a desktop platform in Delphi or for Windows, Android, or iOS in C++, RAD Studio generates a package shared library file. Projects linking to your package dynamically need your package shared library file at run time.

The file name of your package shared library file is:

  • <package>.bpl for 32-bit Windows and 64-bit Windows.
  • bpl<package>.dylib for macOS and 64-bit iOS Device.
  • bpl<package>.so for Linux.

When you build your package that meets the requirements, your package shared library file is generated by default into the following folder:

  • For 32-bit Windows: C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl
  • For other platforms in Delphi and 64-bit Windows in C++: C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl\<platform>
  • For other platforms in C++: C:\Users\Public\Documents\Embarcadero\Studio\23.0\Bpl\<platform>\<build configuration>

To change the output directory:

  • In Delphi, use the Package output directory option in Project > Options > Bulding > Delphi Compiler.
  • In C++, use the Final output directory option in Project > Options > Bulding > C++ (Shared Options).

See Also