xed icon indicating copy to clipboard operation
xed copied to clipboard

C2664 fails the build in VS2019 with --clr

Open OZ1 opened this issue 5 years ago • 3 comments

In Visual Studio 2019 I have a bunch of the following errors:

D:/git/xed/a/obj/xed-encoder-0.c(2331): error C2664: "void xed3_operand_set_error(xed_decoded_inst_t *,xed_error_enum_t)": невозможно преобразовать аргумент 2 из "const char" в "xed_error_enum_t" D:/git/xed/a/obj/xed-encoder-0.c(2331): note: Для преобразования в перечисляемый тип требуется явное приведение (static_cast, приведение в стиле С или приведение в стиле функции) D:\git\xed\a\obj\xed-operand-accessors.h(1107): note: см. объявление "xed3_operand_set_error"

"const char" to "xed_XXX_enum_t" fails implicitly. casts should be added.

Оптимизирующий компилятор Microsoft (R) C/C++ версии 19.23.28106.4 для x64

OZ1 avatar Oct 25 '19 19:10 OZ1

I'll upgrade my vs2019 and take a look... thx

markcharney avatar Oct 25 '19 20:10 markcharney

add --clr option like this: cls& python ..\xed\mfile.py --shared --clr

OZ1 avatar Oct 25 '19 20:10 OZ1

I reproduced it (in English). More than just that once cast to fix.

markcharney avatar Oct 26 '19 00:10 markcharney