The unit specified was not named in the contains clause of the package, but a unit which has already been included in the package imports it.
This message will help the programmer avoid violating the rule that a unit may not reside in more than one related package.
Ignoring the warning, will cause the unit to be put into the package. You could also explicitly list the named unit in the contains clause of the package to accomplish the same result and avoid the warning altogether. Or, you could alter the package list to load the named unit from another package.
package Produce; contains Classes; end.
The best solution for this problem is to explicitly name all the units which will be imported into the package in the contains clause, as has been done here.
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!