Delphi Error – F2063 Could not compile used unit ‘%s’

Delphi Compiler Error

F2063 Could not compile used unit ‘%s’

Reason for the Error & Solution

This fatal error is given when a unit used by another could not be compiled. In this case, the compiler gives up compilation of the dependent unit because it is likely very many errors will be encountered as a consequence.

The cause for the fatal error lies in the previous errors reported by the compiler, that is, the actual errors that occurred in the unit being used.

The Delphi compiler does not give up after the first error it finds. It tries to find all the errors in the source and report each one, so that you can fix all the errors before attempting to compile again.

However, if a unit or program uses another unit, and that other unit cannot be compiled owing to a compiler error (such as a syntax error), it is not reasonable to continue trying to compile the unit or program. There would be too many false positives; identifiers would be registered as not found, when in fact they would be found if the used unit had compiled correctly.

Share:

Leave A Reply

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

You May Also Like

Delphi Compiler Error X2421 Imported identifier ‘%s’ conflicts with ‘%s’ in ‘%s’ Reason for the Error & Solution This occurs...
Delphi Compiler Error X2367 Case of property accessor method %s.%s should be %s.%s Reason for the Error & Solution No...
Delphi Compiler Error X2269 Overriding virtual method ‘%s.%s’ has lower visibility (%s) than base class ‘%s’ (%s) Reason for the...