Hi,
I'm compiling JCHEVM with MSCV/Win/x86 and I'm facing the following errors.
Any ideas to help me out?
Enrico
------------------------------------------------------------
Error 1
d:\projects\harmony-jcvm\jcvm\include\jc_defs.h(218) : error C2229:
struct '_jc_object_array' has an illegal zero-sized array
struct _jc_object_array {
_jc_object *elems[0];
_jc_word lockword; <------ line 218
_jc_type *type;
const jint length;
};
------------------------------------------------------------
Error 2
d:\projects\harmony-jcvm\jcvm\include\jc_defs.h(454) : error C2061:
syntax error : identifier 'sigjmp_buf'
struct _jc_catch_frame {
_jc_catch_frame *next;
const _jc_method *method;
volatile _jc_uint16 region;
sigjmp_buf context; <------ line 454
};
------------------------------------------------------------
Error 3
d:\projects\harmony-jcvm\jcvm\include\jc_defs.h(522) : error C2010: '.'
: unexpected in macro formal parameter list
#define _JC_DEFINE_TRAPS(env, catch, method_info, targets...)
\ <------ line 522
do {
\
_jc_env_head *const _eh = (_jc_env_head *)(env); \
static const void *const _targets[] \
/* __attribute__ ((section(".rodata"))) */ \
= { _JC_NULL, targets }; \
int _target_index;
\
\
(catch).next = _eh->catch_list;
\
_eh->catch_list = &(catch);
\
(catch).method = (method_info); \
(catch).region = 0;
\
if ((_target_index = sigsetjmp((catch).context, 0)) != 0) \
goto *_targets[_target_index]; \
} while (0)