title: C++ Builder DLL can not link unit obj from a Delphi Package (BPL). How to fix it?
body: <p>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.</p>
  
  <p>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.</p>
  
  <p>I thought it should be enough to change the Delphi BPL project's Link options like this: </p>
  
  <pre><code>Project Options -&gt;Delphi Compiler-&gt;Linking -&gt;linker output : 
     "Generate all C++ Builder files (including package libs)"
  </code></pre>
  
  <p>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.)</p>