HomeDelphiDelphi Error – E2447 Duplicate symbol ‘%s’ defined in namespace ‘%s’ by ‘%s’ and ‘%s’

Delphi Error – E2447 Duplicate symbol ‘%s’ defined in namespace ‘%s’ by ‘%s’ and ‘%s’

Delphi Compiler Error

E2447 Duplicate symbol ‘%s’ defined in namespace ‘%s’ by ‘%s’ and ‘%s’

Reason for the Error & Solution

This error occurs when symbols from separate units are combined into a common namespace, and the same symbol name is in both units. In previous versions of Delphi, these units may have compiled without error, because symbol scope was defined by the unit alone. In RAD Studio, units must be inserted into namespaces when generating the IL metadata. This may cause separate units to be be combined into a single namespace.

To resolve this problem, you may wish to rename one of the symbols in the two units, alias one of the symbols to the other, or change the unit names so that they do not contribute to the same namespace.

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