Hi! I wanted to use Lazarus, but the first thing i did i only made a button and edited the caption option wanted to run the program but there came an error:
/usr/bin/ld: cannot find -lgdk
project1.lpr(13,1) Error: Error while linking
/home/fir3.fox/Projekte/lazarus/project1.lpr(1,1) Closing script ppas.sh
The only thing i edited in options was target system: Linux.
Is this Bug or must i edit something in the code? I learnt a little bit delphi long time ago so i wanted to learn it again. But here schouldnt be an error or?
unit unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, Buttons;
type
TForm1 = class(TForm)
Button1: TButton;
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
initialization
{$I unit1.lrs}
end.
With the error project1.lpr opens with this code, end. is red marked
program project1;
{$mode objfpc}{$H+}
uses
Interfaces,
Forms, unit1;
begin
Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.