You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm getting this error when trying to compile the code in serial mode using gcc 14.x,
In file included from ./hdr/create.hpp:55,
from ./hdr/exchange.hpp:20,
from ./hdr/atoms.hpp:31,
from src/simulate/LLGHeun.cpp:55:
./hdr/create_atoms_class.hpp:32:4: error: 'uint64_t' does not name a type
32 | uint64_t uc_id; // atom number of host unit cell
| ^~~~~~~~
./hdr/create_atoms_class.hpp:1:1: note: 'uint64_t' is defined in header '<cstdint>'; this is probably fixable by adding '#include <cstdint>'
+++ |+#include <cstdint>
1 | //-----------------------------------------------------------------------------
Here's the version of gcc:
$ gcc --version
gcc (GCC) 14.2.1 20240805
Copyright (C) 2024 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE
The issue seems to go away if I apply the following diff:
Hi,
I'm getting this error when trying to compile the code in serial mode using gcc 14.x,
Here's the version of gcc:
The issue seems to go away if I apply the following diff:
Should I PR these changes? Or would it break the compilation for older versions of GCC?
The text was updated successfully, but these errors were encountered: