我只是在我的 Lazarus 上编码,没有改变任何TForm
声明。然后我尝试测试我的应用程序,但在编译时出现此错误:
TomAct.lpr(11,43) 错误:重复标识符“TOMACT” TomAct.lpr(15,32) 错误:找不到标识符“TForm1” TomAct.lpr(15,39) 错误:找不到标识符“Form1” TomAct.lpr(19) 致命:编译模块时出现 3 个错误,停止
这是我的 *.lpr 文件的内容:
program TomAct;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms
{ you can add units after this }, TomAct;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
我需要做什么?