captainys / TOWNSEMU

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

Fixed build on Arch Linux. #114

Closed tnibert closed 6 months ago

tnibert commented 7 months ago

When compiling from source on Arch Linux, I encountered the following error:

[  7%] Building CXX object osdependent/filesys/CMakeFiles/filesys.dir/filesys_common.cpp.o
In file included from /home/tim/code/TOWNSEMU/src/osdependent/filesys/filesys_common.cpp:2:
/home/tim/code/TOWNSEMU/src/osdependent/filesys/filesys.h:50:17: error: ‘uint16_t’ does not name a type
   50 |                 uint16_t FormatDOSTime(void) const;
      |                 ^~~~~~~~
/home/tim/code/TOWNSEMU/src/osdependent/filesys/filesys.h:9:1: note: ‘uint16_t’ is defined in header ‘<cstdint>’; did you forget to ‘#include <cstdint>’?
    8 | #include <vector>
  +++ |+#include <cstdint>
    9 | #include <string>

Found that including cstdint in the changed header files resolved all errors relating to undefined uint16_t, uint32_t, uint64_t types and allowed the build to complete successfully.

captainys commented 6 months ago

Thanks!