On Fri, 06 Mar 2009, Szak�ts Viktor wrote:
> With:
> hbinit.h: /* #define HB_MSC_STARTUP */
> ---
> set HB_COMPILER=msvc
> set HB_USER_CFLAGS=-GL
> set HB_USER_LDFLAGS=/LTCG
> set HB_USER_AFLAGS=/LTCG
> call make_gnu.bat clean install > out.txt 2>&1
> ---
> -> ../../../../include\hbinit.h(224) : fatal error C1189: #error :  Unknown
> initialization method.

This is expected for pure C mode.

> ---
> set HB_COMPILER=msvc
> set HB_USER_CFLAGS=-GL -TP
> set HB_USER_LDFLAGS=/LTCG
> set HB_USER_AFLAGS=/LTCG
> call make_gnu.bat clean install > out.txt 2>&1
> ---
> -> Works!

Fine. Have you also moved the link time bindings before hb_errInternal()
or it works with default SVN code?
For pure C mode you probably have to look for some workaround.
Maybe some magic MSVC #pragma can force linking given modules.

BTW you can force C++ like initialization by static variable assignment by:
   set HB_USER_CFLAGS=-DHB_STATIC_STARTUP
I left the massage about potential problems caused by pure C initialization
also in C++ mode in hbinit.h code on:
      Sat 07 Maj 2005 02:46:38 CEST
so it's nearly 4 years but I do not know if 3-rd part developers ever
tried to update their code. Maybe it's time to fully disable this hack?
If 4 years is not enough then next 10 also won't help.

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

Reply via email to