Re: [Harbour] Re: error C2485 compiling hvm.c with vce 2007

2010-02-19 Thread Xavi

Antonio,

Seems that Windows CE does not support the __declspec(thread) attribute.
But you're using HB_STACK_MACROS, remember .-

http://lists.harbour-project.org/pipermail/harbour/2009-December/029344.html

--
Xavi

El 19/02/2010 3:41, Antonio Linares escribió:

More on the C2485 error compiling with Microsoft Windows CE 6.x SDK cl.exe:

We have found where the error is coming from. It was not a define:

hb_stack_ptr is defined as:
HB_TLS_ATTR PHB_STACK hb_stack_ptr = NULL;

HB_TLS_ATTR is translated into __declspec( thread ) and that may be
causing a mangled name for the variable name that makes the compiler
itself to error.

If we remove (just for a test) HB_TLS_ATTR from estack.c (line 93) and
from hbstack.h (line 200) then those errors go away. Obviously that is
not a solution but take us closer to find it.

regards,

Antonio

___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] Re: error C2485 compiling hvm.c with vce 2007

2010-02-18 Thread Antonio Linares
More on the C2485 error compiling with Microsoft Windows CE 6.x SDK cl.exe:

We have found where the error is coming from. It was not a define:

hb_stack_ptr is defined as:
HB_TLS_ATTR PHB_STACK hb_stack_ptr = NULL;

HB_TLS_ATTR is translated into __declspec( thread ) and that may be
causing a mangled name for the variable name that makes the compiler
itself to error.

If we remove (just for a test) HB_TLS_ATTR from estack.c (line 93) and
from hbstack.h (line 200) then those errors go away. Obviously that is
not a solution but take us closer to find it.

regards,

Antonio
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour


[Harbour] Re: error C2485 compiling hvm.c with vce 2007

2010-02-18 Thread Antonio Linares
ok, this solved it:

set HB_USER_CFLAGS=-DHB_NO_TLS

thanks :-)

Antonio
___
Harbour mailing list (attachment size limit: 40KB)
Harbour@harbour-project.org
http://lists.harbour-project.org/mailman/listinfo/harbour