Skip to content

Issue with compiling "cannot use keyword 'false' as enumeration constant" #74

Description

@Mosblinker

I am trying to compile it with the latest version of GBA DevKitArm and I keep getting this error when compiling:

In file included from ./include/m_fixed.h:38,
                 from ./include/p_pspr.h:40,
                 from ./include/d_player.h:44,
                 from ./include/doomstat.h:43,
                 from ./source/am_map.c:3:
./include/doomtype.h:48:15: error: cannot use keyword 'false' as enumeration constant
   48 | typedef enum {false, true} boolean;
      |               ^~~~~
./include/doomtype.h:48:15: note: 'false' is a keyword with '-std=c23' onwards
make[1]: *** [/opt/devkitpro/devkitARM/base_rules:40: am_map.o] Error 1
make: *** [Makefile:132: build] Error 2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions