retro8 icon indicating copy to clipboard operation
retro8 copied to clipboard

error: ‘size_t’ has not been declared

Open sanmacorz opened this issue 2 years ago • 0 comments
trafficstars

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.

sanmacorz avatar Jun 26 '23 04:06 sanmacorz