What is the exact message? And any way to get rid of it?
LINK : warning LNK4049: locally defined symbol "___install_allegro" imported
LINK : warning LNK4049: locally defined symbol "__mangled_main" imported
I don't know much about MSVC (I dig up old version 6), so I could make something wrong during library compilation.
The problem in OSX is different.. main() must not be in the main thread
there. So the real main() created a thread, and then calls the user
main() (renamed to _mangled_main) in that other thread.
I got that, I was suggestion that instead of using _mangled_main_address, we use _manged_main as:
+ (void)app_main: (id)arg
/* int (*real_main) (int, char*[]) = (int (*) (int, char*[])) _mangled_main_address;*/
int (*real_main) (int, char*[]) = (int (*) (int, char*[])) &_mangled_main;
exit(real_main(__crt0_argc, __crt0_argv));