Skip to content

Tell cmake to use c99 to fix build with GCC 15#530

Open
2kbits wants to merge 2 commits intoopen-simh:masterfrom
2kbits:fix/cmake-c-standard
Open

Tell cmake to use c99 to fix build with GCC 15#530
2kbits wants to merge 2 commits intoopen-simh:masterfrom
2kbits:fix/cmake-c-standard

Conversation

@2kbits
Copy link

@2kbits 2kbits commented Feb 25, 2026

GCC 15 uses c23 instead of c17 by default. Apparently c23 is not backwards compatible to older C standards... This prevented me from easily compiling simh so I added a setting to tell cmake to use c99 fixing the compiling errors.

I also added a missing dependency in the dependency checker for arch linux.

Tested on arch linux with GCC 15.2.1

Fixes #490

GCC 15 uses c23 instead of c17 by default. Apparently c23 is not backwards compatible to older C standards... This prevented me from easily compuling simh so I added a setting to tell cmake to use c99 fixing the compiling errors.

Fixes open-simh#490
I added the missing dependency sdl2_ttf for arch linux in the dependency checker as after using the checker I still needed to manually install that to compile.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Compilation failure with GCC 15 + cmake - bool is now a keyword (C23+)

1 participant