captainys / TOWNSEMU

FM Towns Emulator "Tsugaru"
BSD 3-Clause "New" or "Revised" License
247 stars 18 forks source link

Error compiling deviceutil.cpp: uint64_t does not name a type did you forget to include cstdint #123

Open rubin55 opened 5 months ago

rubin55 commented 5 months ago

I'm building current git master, and I'm getting the following:

make: *** [Makefile:101: all] Error 2
==> ERROR: A failure occurred in build().
    Aborting...

Scrolling up a bit I see:

/tmp/makepkg.builddir/townsemu-git/src/TOWNSEMU/src/device/deviceutil.h:22:16: error: ‘uint64_t’ does not name a type
   22 |         static uint64_t ReadUint64(const unsigned char *&data);
      |                ^~~~~~~~
/tmp/makepkg.builddir/townsemu-git/src/TOWNSEMU/src/device/deviceutil.h:1:1: note: ‘uint64_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
  +++ |+#include <cstdint>
    1 | #ifndef DEVICEUTIL_IS_INCLUDED

Messages like the above occur multiple times, for various similar int types.

captainys commented 5 months ago

You are absolutely right. I'm going to push a fix soon.