Delphi 10中的E2037错误

时间:2016-02-29 23:39:10

标签: delphi compiler-errors delphi-10-seattle synedit

我正在尝试编译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'

我发现之前和之后的声明都没有任何区别。我只是不明白。

1 个答案:

答案 0 :(得分:2)

  1. github获取最新版本,它支持XE8
  2. 打开源代码/ SynEdit.inc文件并添加以下内容:
  3. {{1}}
    1. 重建包。