Jakz / retro8

PICO-8 implementation with SDL2/SDL1.2 and RetroArch back-ends
GNU General Public License v3.0
253 stars 29 forks source link

error: ‘size_t’ has not been declared #41

Open sanmacorz opened 1 year ago

sanmacorz commented 1 year ago

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.