[fpc-pascal]Error 216 with SDL

Jonas Maebe jonas at zeus.ugent.be
Mon Aug 4 21:44:13 CEST 2003


On maandag, aug 4, 2003, at 21:12 Europe/Brussels, Holger Peters wrote:

> I used SDL4FreePascal under Windows with FreePascal 1.0.6 and it 
> worked fine. Now, I use RedHat 9.0 with FreePascal 1.0.10 and 
> SDL4FreePascal doesn't work.
> When I compile the demos, I get the runtime error 216 at the first 
> SDLcommand.
>
> Is there a solution?

The problem may be that the SDL4FreePascal C-header translation was 
done for an older version than what you have now, so that type and 
function definitions are wrong now. There are two possible solutions:

a) install the same version of SDL on your system as what you were 
using before
b) translate the SDL headers of the new version to Pascal (or bug 
someone else to do it :)


Jonas





More information about the fpc-pascal mailing list