Hi All!
I would like to use the SDL library but unfortunatelly I can't compile my test application.
I get the following error messages:
project1.lpr(22) Error: Undefined symbol: SDL__PUTENV$PCHAR$$LONGINT
project1.lpr(22) Error: Undefined symbol: SDL_GETENV$PCHAR$$PCHAR
project1.lpr(22) Fatal: There were 2 errors compiling module, stopping
This is the sourecode that i would like to compile:
unit Unit1;
{$mode objfpc}{$H+}
interface
uses
Classes, SysUtils, FileUtil, LResources, Forms, Controls, Graphics, Dialogs,
StdCtrls,sdl;
type
{ TForm1 }
TForm1 = class(TForm)
Button1: TButton;
procedure Button1Click(Sender: TObject);
private
{ private declarations }
public
{ public declarations }
end;
var
Form1: TForm1;
implementation
{ TForm1 }
procedure TForm1.Button1Click(Sender: TObject);
begin
form1.close;
end;
initialization
{$I unit1.lrs}
end.
What can be the problem?
Could somebody show me a working example for SDL in WindowsCE?
Thank you for your help in advance!