Sujet : Re: Baby X is bor nagain
De : bc (at) *nospam* freeuk.com (bart)
Groupes : comp.lang.cDate : 11. Jun 2024, 13:59:23
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v49hna$124bi$1@dont-email.me>
References : 1
User-Agent : Mozilla Thunderbird
On 11/06/2024 10:13, Malcolm McLean wrote:
I've finally got Baby X (not the resource compiler, the Windows toolkit) to link X11 on my Mac. And I can start work on it again. But it was far from easyt to get it to link.
Can friendly people plesse dowload it and see if it compiles on other platforms?
In src\windows, I tried compiling both main.c and testbed.c (not using any makefiles, just directly applying a compiler).
They both call a startbabyx() function which is incompatible with the one defined in BabyX.h.
It seems they pass an extra Hinstance first parameter. If I switch from WinMain() to main(), then testbed.c compiles - by itself. (Note that Windows GUI apps don't need WinMain; they work just as well with main.)
I tried another module BBX_Canvas.h. gcc complained about a type mismatch (but it is 14.1 which is stricter).
tcc said it couldn't find windowsx.h.
My mcc had problems with UINT32 which doesn't seem to be defined anywhere that I could see.