> On Feb 1, 2022, at 3:15 AM, Jonas Maebe via fpc-pascal
> wrote:
>
> It only works in your main program, not in a unit or so. Maybe that's the
> reason?
The linker wants me to redefine "main" to clear the error but this doesn't make
sense and the app crashes when launched. I.e.:
function
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"