Recent

Author Topic: SDL for WinCe  (Read 11283 times)

hammster12

  • Newbie
  • Posts: 5
SDL for WinCe
« on: January 02, 2011, 09:14:40 pm »
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:
Code: [Select]
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!

Laksen

  • Hero Member
  • *****
  • Posts: 727
    • J-Software
Re: SDL for WinCe
« Reply #1 on: January 02, 2011, 10:36:48 pm »
This looks like a bug in the dll import system for FPC

Edit: Made a bug report for it: http://bugs.freepascal.org/view.php?id=18371
« Last Edit: January 02, 2011, 11:04:01 pm by Laksen »

cyberhero

  • New Member
  • *
  • Posts: 12
Re: SDL for WinCe
« Reply #2 on: February 09, 2011, 03:06:36 pm »
Please check this link,
http://www.4shared.com/file/0A_-lRVT/SDL4WinCE.html

The download includes the pascal headers and sdl.dll for wince.


Good luck,


Helmut

Laksen

  • Hero Member
  • *****
  • Posts: 727
    • J-Software
Re: SDL for WinCe
« Reply #3 on: February 09, 2011, 05:15:37 pm »
The problem should be fixed in FPC svn trunk now

hammster12

  • Newbie
  • Posts: 5
Re: SDL for WinCe
« Reply #4 on: February 12, 2011, 01:34:19 pm »
Thank you all very mutch for your help!

I tried the sdl4wince and it's working!

alex208210

  • Newbie
  • Posts: 4
Re: SDL for WinCe
« Reply #5 on: December 26, 2014, 06:33:35 pm »
http://www.4shared.com/file/0A_-lRVT/SDL4WinCE.html  link not worked, Please place the file again

 

TinyPortal © 2005-2018