Delphi Error – E2222 $WEAKPACKAGEUNIT & $DENYPACKAGEUNIT both specified

Delphi Compiler Error

E2222 $WEAKPACKAGEUNIT & $DENYPACKAGEUNIT both specified

Reason for the Error & Solution

It is not legal to specify both $WEAKPACKAGEUNIT and $DENYPACKAGEUNIT. Correct the source code and recompile.