I have a Delphi project group consisting of three projects: Sales
, Inventory
, and Orders
.
In the Sales project, there is a unit called Customers.pas
. The Inventory
project has a unit called Products.pas
that imports Customers
from the Sales
project. The Orders
project has both Sales
and Inventory
listed in the requires
clause of the Orders.dpk
file, and Customers
is also imported in the OrdersUnit
.
However, when I try to compile the project, I get the following error:
[dcc32 Error] Orders.dpk(42): E2199 Packages 'Sales' and 'Inventory' both contain unit 'Customers'
What could be causing this error, and what is the possible solution? I cannot move, delete or rename any files in the codebase.