[fpc-pascal] $PASCALMAINNAME error with SDL/IPhone

Jonas Maebe jonas at freepascal.org
Mon Jan 31 21:15:37 CET 2022


On 31/01/2022 03:49, Ryan Joseph via fpc-pascal wrote:
> I thought I had this working some years ago but I'm confused again. :)
> 
> When trying to use SDL on iPhone I include:
> 
>   {$PASCALMAINNAME SDL_main}
> 
> But when I compile I get a linker error:
> 
> Undefined symbols for architecture x86_64:
>    "_main", referenced from:
>       implicit entry/start for main executable
>       (maybe you meant: _SDL_main)
> 
> Why is this?

It only works in your main program, not in a unit or so. Maybe that's 
the reason?


Jonas


More information about the fpc-pascal mailing list