C++ compiling error in gc
3epifaniusz opened this issue · comments
3epifaniusz commented
g++ -Wall -pedantic-errors -I ~/mruby/include/ programik.c -o programik ~/mruby/build/minimal/lib/libmruby.a -lm
In file included from /home/user/mruby/include/mruby.h:118,
from zero.c:1:
/home/user/mruby/include/mruby/gc.h:51:9: error: ISO C++ forbids flexible array member ‘objects’ [-Wpedantic]
51 | void *objects[];
| ^~~~~~~
g++ (GCC) 12.2.1 20221121 (Red Hat 12.2.1-4) on fedora 37
mruby 3.1.0
dearblue commented
A similar error was not identified in the development version.
ref. https://github.com/mruby/mruby/pull/5596/files#diff-4102f89ac26fabdcfc82d2d877a70cab4e56814b6adfb2040934635870e7adb4
Please try the latest development version or wait for mruby 3.2, which is expected in the near future.