Delphi Error – E2272 Cannot use reserved unit name ‘%s’

Delphi Compiler Error

E2272 Cannot use reserved unit name ‘%s’

Reason for the Error & Solution

An attempt has been made to use one of the reserved unit names, such as System, as the name of a user-created unit.

The names in the following list are currently reserved by the compiler.

  • System
  • SysInit

unit System;
interface
implementation
begin
end.


The name of the unit in this example is illegal because it is reserved for use by the compiler.

unit MySystem;
interface
implementation
begin
end.


The only solution to this problem is to use a different name for the unit.

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