ev1313 / Pascal-SDL-2-Headers

These are the Pascal SDL 2 Headers.
Mozilla Public License 2.0
114 stars 48 forks source link

Doesn't Compile. #13

Closed krfkeith closed 10 years ago

krfkeith commented 10 years ago

I'm using FreePascal version 2.6.4 on x86_64, on Linux Mint 17 x86_64.

When I try to compile the following test program from http://www.freepascal-meets-sdl.net/ :

program Chapter3_SDL2;
uses SDL2;
begin
  //initilization of video subsystem
  if SDL_Init( SDL_INIT_VIDEO ) < 0 then HALT;
  {your SDL2 application/game}
  //shutting down video subsystem
  SDL_Quit;
end.

I get the following error:

me@computer ~/pascal/game/Pascal-SDL-2-Headers $ fpc test.pas 
Free Pascal Compiler version 2.6.4 [2014/04/20] for x86_64
Copyright (c) 1993-2014 by Florian Klaempfl and others
Target OS: Linux for x86-64
Compiling test.pas
Compiling sdl2.pas
jedi.inc(55,4) Warning: Misplaced global compiler switch
jedi.inc(328,7) Error: Compile time expression: Wanted STRING but got INTEGER at "RTLVERSION >= 26"
jedi.inc(344,7) Warning: Illegal identifier "UNSAFE_TYPE" for $WARN directive
sdl2.pas(200,1) Fatal: There were 1 errors compiling module, stopping
Fatal: Compilation aborted
Error: /usr/bin/ppcx64 returned an error exitcode (normal if you did not specify a source file to be compiled)
ev1313 commented 10 years ago

Fixed.

krfkeith commented 10 years ago

Awesome, thanks!