Compiling C++ Design-Time Packages That Contain Delphi Source
Go Up to How To Compile and Build Applications
C++Builder supports compiling design-time packages that contain Delphi source files. However, if any of those Delphi sources make reference to IDE-supplied design-time units from the Tools API, you must take steps to ensure that the references can be resolved by the C++Builder package.
To compile design-time packages that contain Delphi source
- The Delphi compiler must be able to resolve units in the
DesignIDE
package. To enable this, in the C++Builder package project, go to Project > Options > Delphi Compiler > Other Options. - Add
-LUDesignIDE
to the Additional Options field. - The C++ linker must be able to resolve the reference inside the compiled design-time
.obj
to link. To allow this, in the C++Builder package project, select the Project > Add To Project > Requires tab. - In the Package name field, enter
designide.bpi
and click OK.
You can now compile and install your C++Builder package.