Compiling Component Packages for C++

By | January 20, 2018

Note to self (because you keep forgetting)…

  1. Make sure your package knowns where you want the package to be located (Project Options | Delphi Compiler for All Configurations | Package Output Directory);
  2. For C++ make sure your package knowns where you want the DCP, BPI, LIB files to be located (Project Options | Delphi Compiler for All Configurations | DCP Output Directory);
  3. Make sure BOTH BPL and DCP directories are on your path;
  4. Compile the package to output C++ files (Project Options | Delphi Compiler | Output C/C++ for All Configurations | C/C++ Output File Generation… | Generate All C++ Builder Files (Including Package LIBS));
  5. Generate HPP Files (Project Options | Delphi Compiler | Output C/C++ for All Configurations | Generate .HPP File | TRUE);
  6. Build your package.

D.