Re: [AD] Magic main in Windows

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


On Monday 02 August 2004 13:48, Sam Hocevar wrote:
>    They both do. The only one I had problems with was Borland's (but I
> only have version 6; maybe people who own more recent versions might
> check that).

I'm curious to hear about that, personally...

>    By the way, I have used the previously mentioned #define for the
> Debian version of Allegro, to avoid the necessity for alleg_unsharable.a
> which was breaking prelinking (because of undefines weak symbols).

What was the problem exactly?
Can you try the most recent WIP? It adds an allegro_icon weak symbol to the 
library to set the X11 icon. I haven't heard about problems with this yet, 
but the WIP is somewhat recent.

> To maintain compatibility with binaries linked with classic Allegro
> versions, (which don't contain a main() routine) I have added the
> following code to src/unix/umain.c:

If all goes well (that is, there are no further problems with my new 
get_executable_filename), then we no longer even need a magic main on 
*nix, and we can delete umain.c from the sourcetree.
This would be an ideal situation IMO.

Evert





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