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 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...