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.
When compiling from source on Arch Linux, I encountered the following error:
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.