On Mon, 02 Mar 2009, Pritpal Bedi wrote:

Hi

> Further investigations suggest that 'void hb_winmainArgInit()' in
> harbour/source/vm/cmdarg.c is not being executed and hence 
> 'BOOL hb_winmainArgGet()' always return FALSE. So the GT 
> initialization is failing somewhere.

For GUI applications use -mwindows MinGW GCC link time switch and
never link libhbmainstd.a which contains main() function. You also
need libhbmainwin.a (lhbmainwin).
For CUI applications just simply add libhbmainstd.a to linked
library list by -lhbmainstd. You can also use -mconsole switch
but for MinGW linker the highest priority is main() function
in one of linked objects or libraries.
That's all.

Anyhow I suggest to create for xMate new configuration which will
use only hbmk2 instead of calling harbour and/or C compilers.
Such configuration will work for any C compiler supported by
Harbour and hbmk2.

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

Reply via email to