nakst / gf

A GDB frontend for Linux.
MIT License
1.82k stars 61 forks source link

g++ 7.5.0 build error #62

Closed Kipt closed 2 years ago

Kipt commented 2 years ago

Decided to try this one out but couldn't get passed ./build.sh step. Compiler flags the C99 designator expressions as error, a feature that is only available in C++20. I assume later versions of g++ has this implemented as a non-standard extension.

The locations of the errors are windows.cpp:2332:46 and gf2.cpp:1092:1 with compilation error "sorry, unimplemented: non-trivial designated initializers not supported"

What is the minimum compiler version required?

nakst commented 2 years ago

Sorry, but I don't know the version history of GCC, so I don't know when this feature was added. My computer has version 11.1.0, where it compiles without error.

Kipt commented 2 years ago

I bit the bullet and changed the initialization to the less readable C++ compliant version locally and that was the only issue I found. If I'll find anything else I'll update GCC to 11.1.0, thanks.