Hello Guys;
I installed Lazarus to my Ubuntu 10.4. Then when I try to compile an application (a simple hello world for testing) I get these warnings:
"This project does not use the LCL Unit Interfaces but it seems it needs it.
You will get strange linker errors if you use the LCL forms without interfaces
Add unit interfaces-Ignore-Always Ignore-Cancel"
How can I fix this problem? I try to add unit interface, compile the LCL but they do not help me so far. Please show me a way to continue to work with Lazarus.
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs;
type
{ TForm1 }
TForm1 = class(TForm)
procedure FormCreate(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.FormCreate(Sender: TObject);
begin
ShowMessage('Hi!');
end;
initialization
{$I unit1.lrs}
end.
program Project1;
{$mode objfpc}{$H+}
uses
{$IFDEF UNIX}{$IFDEF UseCThreads}
cthreads,
{$ENDIF}{$ENDIF}
Interfaces, // this includes the LCL widgetset
Forms, Unit1, LResources
{ you can add units after this };
{$IFDEF WINDOWS}{$R project1.rc}{$ENDIF}
begin
{$I project1.lrs}
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.