Re: [AD] Exorcising END_OF_MAIN for Allegro 5 |
[ Thread Index |
Date Index
| More lists.liballeg.org/allegro-developers Archives
]
On 2008-07-13, torhu <torhu.lists@xxxxxxxxxx> wrote:
> Based on a discussion on the allegro.cc forums:
> http://www.allegro.cc/forums/thread/596872/756993#target
> ---
[snip]
>
> The entry point selection part of this seems to only apply to msvc. I've
> tested with msvc 6 and 9, and Intel's latest compiler. I noticed that Intel
> uses the msvc linker, and choosing the entry point is done by the linker
> anyway. It seems MinGW and DMC don't care about whether you use main or
> WinMain.
>
> I haven't got Borland or Watcom installed. Not sure what exactly Allegro 5
> is supposed to support either.
>
> MSDN docs for the relevant linker args:
> http://msdn.microsoft.com/en-us/library/f9t8842e(VS.71).aspx
> http://msdn.microsoft.com/en-us/library/fcc1zstk(VS.71).aspx
Seems an excellent solution for Windows. Thanks for finding it!
> There's one problem left to deal with, that I can think of. I know that
> there's some startup code being run from Allegro's main on OS X, but maybe
> that could be run by allegro_init or something. I don't own a Mac.
The problem used to be that one of the Mac libraries needed to take over
the main thread, so we had to relegate the user's code to another
thread. I hope it has changed.
Peter