Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delphi XE - [DCC Error] : E2004 Identifier redeclared: 'System'

I do not understand why this error occurs...Is this a bug in XE, or is something wrong in the IDE settings?

enter image description here

like image 588
RBA Avatar asked Jun 29 '12 09:06

RBA


1 Answers

The System unit is automatically used by all other units in a Delphi program. So you cannot use it again. Simply remove System from your uses clause.

The documentation states:

The System unit and the SysInit unit are used automatically by every application and cannot be listed explicitly in the uses clause.

like image 94
David Heffernan Avatar answered Oct 20 '22 07:10

David Heffernan