When I put conf.enable_cxx_api into my build_config.rb, building mruby-onig-regexp fails because it tries to build onigmo with a C++ compiler, but onigmo can not be built with a C++ compiler (e.g., it uses not as a field name in a struct, but that is a keyword in C++).
I see two ways to fix this: (1) build this mrbgem with CC even if the C++ API is enabled or (2) try to change Onigmo to build with a C++ compiler.
When I put
conf.enable_cxx_apiinto mybuild_config.rb, buildingmruby-onig-regexpfails because it tries to build onigmo with a C++ compiler, but onigmo can not be built with a C++ compiler (e.g., it usesnotas a field name in a struct, but that is a keyword in C++).I see two ways to fix this: (1) build this mrbgem with CC even if the C++ API is enabled or (2) try to change Onigmo to build with a C++ compiler.