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

Ryan Joseph genericptr at gmail.com
Mon Jan 31 03:49:13 CET 2022


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?

Regards,
	Ryan Joseph

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freepascal.org/pipermail/fpc-pascal/attachments/20220131/1d213e44/attachment.htm>


More information about the fpc-pascal mailing list