Skip to content

Build failure with gcc 15+ #27

@rountree

Description

@rountree

Building with gcc v15 and above leads to errors like these:

../../../../../repos/exafmm-t/include/exafmm_t.h:106:5: error: ‘uint64_t’ does not name a type [-Wtemplate-body]
  106 |     uint64_t key;                               //!< Morton key
      |     ^~~~~~~~
../../../../../repos/exafmm-t/include/exafmm_t.h:15:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; this is probably fixable by adding ‘#include <cstdint>’
   14 | #include "vec.h"
  +++ |+#include <cstdint>

The fix is straightforward: add #include <cstdint> to exafmm_t.h.

Further discussion here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions