Delphi Error – E2469 Linker detected duplicate name ‘%s’ made from both type ‘%s’ in unit ‘%s’ and type ‘%s’ in unit ‘%s’

Delphi Compiler Error

E2469 Linker detected duplicate name ‘%s’ made from both type ‘%s’ in unit ‘%s’ and type ‘%s’ in unit ‘%s’

Reason for the Error & Solution

This happens when the linker finds two variables with the same name in two units. The variables have different types.