I have this error:
E2411 Unit %s in package %s refers to unit %s which is not found in
any package. Packaged units must refer only to packaged units (Delphi)
Delphi Help is extremely helpful and it says:
No further information is available for this error or warning.
Why I can’t refer to a unit that is not part of a package?
UPDATE:
Never-ending story: Putting the file in its own package breaks something else: Unit GIFImg was compiled with a different version of CCR.Exif.Consts.SOutOfResources
This is why I wanted NOT to put the file in its own package.
You can’t refer to a unit that is not part of a package because a package needs to be a self-contained piece of software. That means that a package must contain all units it uses or have them available through packages in its requires clause.
To solve this error you can either