When compiling this project, set the main variable as follows: TARGET_ NAME := mame2015 TARGET:=mame, an error occurred during compilation, as shown in the following figure. Please advise on how to solve this problem. Thank you for your answer. Thank you!
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:399:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 399 | DRAWGFX_CORE(UINT16, PIXEL_OP_REBASE_OPAQUE, NO_PRIORITY);
2023-04-09T20:40:27 | ^~~~~~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c: 在成员函数‘void gfx_element::opaque(bitmap_rgb32&, const rectangle&, UINT32, UINT32, int, int, INT32, INT32)’中:
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:408:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 408 | DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
2023-04-09T20:40:27 | ^~~~~~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c: 在成员函数‘void gfx_element::transpen(bitmap_ind16&, const rectangle&, UINT32, UINT32, int, int, INT32, INT32, UINT32)’中:
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:442:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 442 | DRAWGFX_CORE(UINT16, PIXEL_OP_REBASE_TRANSPEN, NO_PRIORITY);
When compiling this project, set the main variable as follows: TARGET_ NAME := mame2015 TARGET:=mame, an error occurred during compilation, as shown in the following figure. Please advise on how to solve this problem. Thank you for your answer. Thank you!
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:399:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 399 | DRAWGFX_CORE(UINT16, PIXEL_OP_REBASE_OPAQUE, NO_PRIORITY);
2023-04-09T20:40:27 | ^~~~~~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c: 在成员函数‘void gfx_element::opaque(bitmap_rgb32&, const rectangle&, UINT32, UINT32, int, int, INT32, INT32)’中:
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:408:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 408 | DRAWGFX_CORE(UINT32, PIXEL_OP_REMAP_OPAQUE, NO_PRIORITY);
2023-04-09T20:40:27 | ^~~~~~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c: 在成员函数‘void gfx_element::transpen(bitmap_ind16&, const rectangle&, UINT32, UINT32, int, int, INT32, INT32, UINT32)’中:
2023-04-09T20:40:27 src/emu/drawgfxm.h:403:17: 错误: ‘elements’在此作用域中尚未声明
2023-04-09T20:40:27 403 | assert(code < elements()); | ^~~~~~~~
2023-04-09T20:40:27 src/emu/drawgfx.c:442:2: 附注: in expansion of macro ‘DRAWGFX_CORE’
2023-04-09T20:40:27 442 | DRAWGFX_CORE(UINT16, PIXEL_OP_REBASE_TRANSPEN, NO_PRIORITY);