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
_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to