Skip to content

Build fails on GCC15 #348

@Martmists-GH

Description

@Martmists-GH
g++ -std=c++1z -Ilib -Ilib/lua -Ilib/asio/include -DASIO_STANDALONE -Ilib/miniz -Ilib/json/include -Ilib/valijson/include -Ilib/tinyfiledialogs -Ilib/wswrap/include  -Wno-deprecated-declarations -O2 -s -ffunction-sections -fdata-sections -DNDEBUG -flto=8 -pthread -DLUA_CPP `sdl2-config --cflags` -c src/core/baseitem.cpp -o build/linux-x86_64/src/core/baseitem.o
In file included from src/core/baseitem.cpp:1:
src/core/baseitem.h:104:16: error: ‘uint64_t’ has not been declared
  104 |     void setID(uint64_t id) { setID(std::to_string(id)); }
      |                ^~~~~~~~
src/core/baseitem.h:9:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
    8 | #include "signal.h"
  +++ |+#include <cstdint>
    9 | 
make: *** [Makefile:434: build/linux-x86_64/src/core/baseitem.o] Error 1

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