Skip to content

Doesn't compile with GCC #93

Description

@electricbrass
/home/mia/source/elfbsp/src/blockmap.cpp: In function ‘void InitBlockmap(Level&)’:
/home/mia/source/elfbsp/src/blockmap.cpp:107:86: error: cannot bind packed field ‘map_bbox.MapBoundBox::minx’ to ‘short int&’
  107 |     PrintLine(Log::NORMAL, "[{}] Map limits: ({},{}) to ({},{})", __func__, map_bbox.minx, map_bbox.miny, map_bbox.maxx,
      |                                                                             ~~~~~~~~~^~~~
gmake[2]: *** [CMakeFiles/elfbsp.dir/build.make:93: CMakeFiles/elfbsp.dir/src/bsp.cpp.o] Error 1
gmake[2]: *** Waiting for unfinished jobs....
gmake[2]: *** [CMakeFiles/elfbsp.dir/build.make:79: CMakeFiles/elfbsp.dir/src/blockmap.cpp.o] Error 1

GCC is the better option for statically linking the c++ runtime, and I know that's something wanted for elfbsp, so it probably should be able to build with GCC.

This was with gcc (GCC) 16.1.1 20260515 (Red Hat 16.1.1-2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions