dciabrin / ngdevkit

Open source development for Neo-Geo
GNU Lesser General Public License v3.0
262 stars 26 forks source link

The toolchain won't compile correctly using g++ 11 #52

Closed ghost closed 2 years ago

ghost commented 2 years ago

The error is error: use of an operand of type ‘bool’ in ‘operator++’ is forbidden in C++17. This seems to happen because g++ 11 uses by default c++17 instead of c++14. This is confirmed by the fact that the toolchain does compile using g++ 10.

dciabrin commented 2 years ago

Thanks for the report, this will require a tweak to ngdevkit-toolchain. Let me recompile my local version and see if a simple CXXFLAG tweak in ngdevkit-toolchain will fix the issue.