Thanks for the updates.

I can confirm that it builds and works now with MSVC [2008].

I recommend this command to build the whole package, with test program:
---
hbmk2 [-hb10|-xhb] rddleto.hbp letodb.hbp -target=tests\test_ta.prg
---

One warning I'm getting when building test_ra.prg:
---
rddleto.lib(leto1.obj) : warning LNK4254: section '.CRT' (40000040)
merged into '.data' (C0000040) with different attributes
LIBCMT.lib(crt0init.obj) : warning LNK4253: section '.CRT' not merged
into '.rdata';  already merged into '.data'
---

This - and also x64 compatibility - can be fixed in
source/client/leto1.c, by changing init section at the end with this:
---
#if defined( HB_PRAGMA_STARTUP )
   #pragma startup leto1__InitSymbols
   #pragma startup _hb_leto_rdd_init_
#elif defined( HB_MSC_STARTUP )
   #if defined( HB_OS_WIN_64 )
      #pragma section( HB_MSC_START_SEGMENT, long, read )
   #endif
   #pragma data_seg( HB_MSC_START_SEGMENT )
   static HB_$INITSYM hb_vm_auto_leto1__InitSymbols = leto1__InitSymbols;
   static HB_$INITSYM hb_vm_auto_leto_rdd_init = _hb_leto_rdd_init_;
   #pragma data_seg()
#endif
---

Maybe you'll need guards for xhb of pre-1.0 Harbour versions, but
it works with all Harbours >= 1.0.0

Brgds,
Viktor
_______________________________________________
Harbour mailing list
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to