On Wed, 21 Jan 2009, Lorenzo Fiorini wrote:
> > Try to force it using -mwindows switch or removing [hb]mainstd from linked
> > library list.
> I've tried hbmk -mt -xhgtk -mwindows mttest10.prg but I get the same result.
> But probably I don't understand well.
> In hb-func.sh I see:
> if [ "\${HB_COMPILER}" = "mingw" ]; then
>     if [ -z "\${HB_MODE}" ]; then
>         LN_OPT="\${LN_OPT} -mwindows"
>         l="hbmainwin"
>     elif [ "\${HB_MODE}" = "gui" ]; then
>         l="hbmainwin"
>     elif [ "\${HB_MODE}" = "std" ]; then
>         l="hbmainstd"
>     fi
> so I was sure that -mwindows was used by default with mingw.

Ups, I forgot I added it. My fault. Sorry for disinformation.

But it's the problem I said. main() instead of WinMain() as application
entry point and it's inside XHGTK library.
Just simply xhgtk/source/general.c contains main() function which is
detected by MinGW linker so it ignores -mwindows switch and creates
application with main() startup entry do it's not possible to use
any code which needs WinMain() (f.e. GTWVT) with MinGW when XHGTK
is linked. It should be fixed in XHGTK library probably using some
startup/cleanup code instead of creating wrapper to hb_vmInit()/
hb_vmQuit()

best regards,
Przemek
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to