Re: [AD] END_OF_MAIN, again

[ Thread Index | Date Index | More lists.liballeg.org/allegro-developers Archives ]


On 7/30/05, Elias Pschernig <elias@xxxxxxxxxx> wrote:
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));





Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/