How can I compile this ?
program sdltest;
{$linklib gcc}
{$linklib SDLmain}
uses sdl;
var
scr: PSDL_Surface; // Our main screen
begin
SDL_Init(SDL_INIT_VIDEO); // Initialize the video SDL subsystem
scr:=SDL_SetVideoMode(640, 480, 8, SDL_SWSURFACE); // Create a software window of 640x480x8 and assign to scr
SDL_Quit; // close the subsystems and SDL
end.
yes is the demo at the wiki of lazarus
they say use
fpc -Fu<pathtosdl.pas files> -Fi<pathtosdl.inc files> example.pas
but I don't know where are the inc files and the error is something can't find
lgcc
My FPC install is without lazarus I plan to use raspberry just with keyboard so I'm just on a terminal no x11