Delphi Error – E2212 Package unit ‘%s’ cannot appear in contains or uses clauses

Delphi Compiler Error

E2212 Package unit ‘%s’ cannot appear in contains or uses clauses

Reason for the Error & Solution

The unit named in the error is a package unit and as such cannot be included in your project. A possible cause of this error is that somehow a Delphi unit and a package unit have been given the same name. The compiler is finding the package unit on its search path before it can locate a same-named Delphi file. Packages cannot be included in a project by inclusion of the package unit in the uses clause.

Share:

Leave A Reply

Your email address will not be published. Required fields are marked *

You May Also Like

Delphi Compiler Error E2313 Attribute – Known attribute cannot specify properties Reason for the Error & Solution No further information...
Delphi Compiler Error E2379 Virtual methods not allowed in record types Reason for the Error & Solution No further information...
Rodrigo , one of the long time Delphi Developer has been working on one of his personal project “Delphi IDE...