Re: [hatari-devel] Compiling with SDL2 without osx-bundle on OSX fails |
[ Thread Index |
Date Index
| More lists.tuxfamily.org/hatari-devel Archives
]
Hi,
Am Sun, 7 Sep 2014 16:03:38 -0500
schrieb Bob Carpenter <hatari@xxxxxxxxxx>:
> Christer,
>
> That is because main() in main.c is renamed to SDL_main if it is an
> OS X binary. The current #if statement is assuming an OS X bundle.
[...]
>
>
> On Sep 7, 2014, at 8:54 AM, Christer Solskogen
> <christer.solskogen@xxxxxxxxx> wrote:
>
> > Linking C executable hatari
> > Undefined symbols for architecture x86_64:
> > "_main", referenced from:
> > implicit entry/start for main executable
> > (maybe you meant: _SDL_main)
I now tried to fix this problem so that main only gets redefined when
the bundle is enabled. Could you please check if it works since I do
not have an OS X for testing?
Thomas