我正在尝试编译SynEdit代码。然后我得到了几个与E2037和E2065相关的错误。
这是代码。 (代码的定义部分是数千行。我只在这里粘贴了相关的行。)
TCustomSynEdit = class(TCustomControl)
private
FAdditionalWordBreakChars: TSysCharSet;
FAdditionalIdentChars: TSysCharSet;
procedure SetAdditionalIdentChars(const Value: TSysCharSet);
procedure SetAdditionalWordBreakChars(const Value: TSysCharSet);
protected
public
property AdditionalIdentChars: TSysCharSet read FAdditionalIdentChars write SetAdditionalIdentChars;
property AdditionalWordBreakChars: TSysCharSet read FAdditionalWordBreakChars write SetAdditionalWordBreakChars;
published
property Cursor default crIBeam;
end;
procedure TCustomSynEdit.SetAdditionalIdentChars(const Value: TSysCharSet);
begin
FAdditionalIdentChars := Value;
end;
procedure TCustomSynEdit.SetAdditionalWordBreakChars(const Value: TSysCharSet);
begin
FAdditionalWordBreakChars := Value;
end;
我收到了以下错误:
[dcc32 Error] SynEdit.pas(8099): E2037 Declaration of 'SetAdditionalIdentChars' differs from previous declaration
[dcc32 Error] SynEdit.pas(8101): E2003 Undeclared identifier: 'FAdditionalIdentChars'
[dcc32 Error] SynEdit.pas(8104): E2037 Declaration of 'SetAdditionalWordBreakChars' differs from previous declaration
[dcc32 Error] SynEdit.pas(8106): E2003 Undeclared identifier: 'FAdditionalWordBreakChars'
[dcc32 Error] SynEdit.pas(828): E2065 Unsatisfied forward or external declaration: 'TCustomSynEdit.SetAdditionalIdentChars'
[dcc32 Error] SynEdit.pas(829): E2065 Unsatisfied forward or external declaration: 'TCustomSynEdit.SetAdditionalWordBreakChars'
我发现之前和之后的声明都没有任何区别。我只是不明白。