I have a C++ Builder DLL that must link against a Delphi package (BPL), and I think it is possible that the Delphi package may need to be rebuilt to allow it to be used by both C++ Builder and Delphi, but I don't know which options need to be set on the Delphi package.
The current problem is that "UnitX.obj" is not found (ILINK32 error) when linking the C++ Builder package, and UnitX is a unit intended to be dynamically linked between C++Builder and Delphi packages.
I thought it should be enough to change the Delphi BPL project's Link options like this:
Project Options ->Delphi Compiler->Linking ->linker output :
"Generate all C++ Builder files (including package libs)"
The C++Builder DLL has "Runtime packages" checked, and "build with runtime packages" list is set up correctly (it contains the package that contains the UnitX.)