When compiling using make I keep getting the error: ./src/common.h:56:147: error: ‘size_t’ has not been declared
But adding #include <stddef.h> or using std::size_t; to src/common.h fixes it, I think it's because stddef.h guarantees to define size_t in the global namespace, I am not sure why this error seems to trigger only in systems running Manjaro Linux though. In my case I'm running the Kernel 6.3.5.
When compiling using
make
I keep getting the error:./src/common.h:56:147: error: ‘size_t’ has not been declared
But adding
#include <stddef.h>
orusing std::size_t;
tosrc/common.h
fixes it, I think it's becausestddef.h
guarantees to definesize_t
in the global namespace, I am not sure why this error seems to trigger only in systems running Manjaro Linux though. In my case I'm running the Kernel 6.3.5.