On Fri, 12 Mar 2010, Szak�ts Viktor wrote:

Hi,

> hbmk2 behaves the exact same for mingw and mingw64, 
> yet it doesn't work for mingw64 and does for mingw.

This problem was exploited in different MINGW version.
Not in all ones.
Seems that now HBMK2 is tuned only for some chosen MinGW
versions.

> So either it's just a coincidence that mingw works, 
> and there is hbmk2 bug, or there is a difference 
> in either in Harbour mingw64 builds or mingw64 
> itself.

I noticed differences between different mi...@32
releases so it's nothing amazing that they may
exist also between 32 and 64 bit MinGW versions.

> .c stub rightly issues hb_forceLinkMainWin() in 
> both cases, which should be enough to pull WinMain().

It not a problem of linking WinMain() but giving the
highest priority to main().

> If I try 'hbmk2 a.prg -shared', it works, but 
> if I try 'hbmk2 a.prg -shared -gtwvt', it tells: 
>   'Can't locate the starting procedure: 'MAIN''

It means that using -gtwvt hbmk2 switch activates sth
what forces using MAIN() as startup entry. We only have
to locate what it is and fix it. For sure you cannot
pass hbmainstd as one of linked libraries because in such
case console application will be created.

best regards,
Przemek
_______________________________________________
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to