On Mon, 17 Aug 2009, Szak�ts Viktor wrote:
> Output in C++ mode:
> silver:bin vszakats$ nm tstrcv.o -g -n
>          U _HB_FUN_AT
>          U _HB_FUN_EMPTY
[...]
>          U _hb_vmProcessSymbols
> 00000050 T _HB_FUN_MAIN
[...]
> ---
> Output in C mode:
> silver:bin vszakats$ nm tstrcv.o -g -n
>          U _HB_FUN_AT
>          U _HB_FUN_EMPTY
[...]
>          U _hb_vmProcessSymbols
> 00000050 T _HB_FUN_MAIN
[...]

OK, so we do not have any mangling C++ sufixes (I forgot that
we declare HB_FUNC() as extern "C") so the only one thing which
may cause problems is "_" prefix so please update hbmk2 code
and change:
   IF ( n := At( " T HB_FUN_", cFuncList ) ) != 0
      n += 10
to:
   IF ( n := At( " T HB_FUN_", cFuncList ) ) != 0
      n += 10
   ELSEIF ( n := At( " T _HB_FUN_", cFuncList ) ) != 0
      n += 11
   ENDIF
   IF n != 0

best regards,
Przemek
_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to