Delphi – E2049 Label declaration not allowed in interface part

When you declare a label in the interface part of a unit, you get this error in your delphi program.

unit Produce;
interface
label 99;
implementation
begin
99:
end.

Declaring a label in a unit’s interface section is just illegal.

unit Solve;
interface
implementation
label 99;
begin
99:
end.

To fix this error, you have to move it to the implementation section.